How does the ICL7660 work?
The datasheet give a nice description about how this works but the diagram here from that datasheet shows it schematically:

Basically C1 charges up to Vin when the input waveform is HIGH and then it's basically reversed in polarity and connected to C2 which then gets charged at -Vin.