Top "Std" questions

The C++ Standard Library, and its namespace.

How can I get a list of all the Python standard library modules

I want something like sys.builtin_module_names except for the standard library. Other things that didn't work: sys.modules …

python virtualenv std
Count of parameters in a parameter pack? Is there a C++0x std lib function for this?

I was just wondering if there was anything in the C++0x std lib already available to count the number …

c++ templates c++11 std variadic
ISO C++ forbids declaration of ‘tuple’ with no type

When trying to compile a simple class (g++ myclass.cpp), I get the following error: ISO C++ forbids declaration of ‘…

c++ g++ tuples std std-pair
boost::optional alternative in C++ Standard Library

I'm trying to get my program working without boost usage, but can't find an alternative of some useful patterns. Namely, …

c++ c++11 boost std boost-optional
std::unordered_map initialization

When I access an element in std::unordered_map using operator [] for the first time, it is automatically created. What (…

c++ std unordered-map
Does clearing a vector affect its capacity?

I instantiate an std::vector foo(1000). foo.size() is now 1000 and foo.capacity() is also 1000. If I clear the vector …

c++ vector size std capacity
Map with multiple keys in C++

I want to store data by both, their name and their index. In other words, I want to map string …

c++ key std stdmap compound-key
std::thread <unresolved overloaded function type> error

I am trying to spawn a thread from within my class and the thread executes a particular method in my …

c++ multithreading c++11 std stdthread
Convert QByteArray to std::vector<unsigned char>

I tried to convert QByteArray to std::vector<unsigned char> using this code: unsigned char* buffer = (unsigned char*)…

c++ vector std unsigned-char qbytearray
Is it possible to convert a boost::system::error_code to a std:error_code?

I want to replace external libraries (like boost) as much as possible with their equivalents in standard C++ if they …

c++ boost std error-code