|
-
April 7th, 2008, 10:28 AM
#1
std::map weird problem
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
If there is no love sun won't shine
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|