I'm familiar with using CMOS switches ("transmission gates") for switching analog signals, but you can't use them for switching voltages beyond their supply rails. (So if you have a single supply circuit, and a voltage signal that's been AC-coupled and to a ground reference, you cannot use a CMOS switch because the voltage of the signal drops below ground, which is the negative supply for the switch.)
However, there are some analog switches that will switch ±25 V signals with a power supply of 0 V and +3.3 V. How do they work? Is it simple to build a circuit like this out of discrete parts?