cpp fun: list of continous lists