mapsize in cpp