I was trying to use an STL list in C++ and I arrived into a strange exception that I\'m not able to understand.
I recently discovered that the implementation of the hash map in C++ will be called unordered_map. When I looked up why they weren\'t just using hash_map, I discovered that apparently there are compa
If std::vector and friends are self resizing, does that mean if I declare a vector like so: std::vector<string> myvec;
I want to have some data cache which contains some objects which I can update over an UpdateCache function. However, I\'m getting problems with a LNK2001 followed by a LNK1120.
I\'m using a custom allocator to account for memory usage in several containers. Currently I use a static variable to account for the memory usage. How could I separate this account across several con
I would like to use different instances of an STL custom allocator class to manage different memory spaces, and then be able to specify an allocator instance to an STL container such that each contain
I\'am trying to return a string from a function but it doesn\'t compile. When I replace the std::string& type with int& it compiles, however I want to return additionally to the boolean a std:
What is the difference between the index overloaded operator and the insert method call for std::map?
what\'s happening is i\'m reading encryption packets, and I encounter a corrupted packet that gives back a very large random number for the length.
I encounter many times with code where std::vector::clear() of class member of type std::vector is called in constructor and destructor.