Hi all,

Is there a way to know if a particular key exists or not?

I use a pointer to a very very big object as the value for std::map.

If I call std::map's insert function then I have to allocate that large object.

If the key already exists I want to avoid allocating that large object and avoid insert altogether.

Please help. Thanks in advance