Top "Std" questions

The C++ Standard Library, and its namespace.

How to efficiently compare two maps of strings in C++ only for a subset of the keys

I'm wondering if only by applying some standard algorithms is possible to write a short function which compare two std::…

c++ stl comparison maps std
Is std::vector or boost::vector thread safe?

I have multiple threads simultaneously calling push_back() on a shared object of std::vector. Is std::vector thread safe? …

c++ boost stl thread-safety std
Search a vector of objects by object attribute

I'm trying to figure out a nice way to find the index of a certain object in a vector - …

c++ gcc stl std
Is there a range class in C++11 for use with range based for loops?

I found myself writing this just a bit ago: template <long int T_begin, long int T_end> …

c++ c++11 std
Why Microsoft Visual Studio cannot find <stdint.h>?

Possible Duplicate: Visual Studio support for new C / C++ standards? See the text below from wiki: The C99 standard includes …

c++ std stdint
How std::bind works with member functions

I'm working with std::bind but I still don't get how it works when we use it with member class …

c++ c++11 std stdbind
Transferring the ownership of object from one unique_ptr to another unique_ptr in C++11?

In C++11 we can transfer the ownership of an object to another unique_ptr using std::move(). After the ownership …

c++ c++11 std move-semantics
C++ STL map: is access time O(1)?

Is key look up on std::map O(1)? I thought it was until I thought about it more. It is …

c++ data-structures c++11 std
Initializing a std::map when the size is known in advance

I would like to initialize a std::map. For now I am using ::insert but I feel I am wasting …

c++ dictionary std
What is the performance overhead of std::function?

I heard on a forum using std::function<> causes performance drop. Is it true? If true, is it …

c++ boost std