Top "Std" questions

The C++ Standard Library, and its namespace.

Conversion from boost::shared_ptr to std::shared_ptr?

I got a library that internally uses Boost's version of shared_ptr and exposes only those. For my application, I'd …

c++ boost shared-ptr std
Where is stdlib.h / stdint.h in Visual Studio 2010?

I was googling a bit and heard that although stdint.h was not shipped with old versions of Visual Studio, …

visual-studio visual-studio-2010 std include-path stdint
Using numeric_limits::max() in constant expressions

I would like to define inside a class a constant which value is the maximum possible int. Something like this: …

c++ std constexpr numeric-limits
How to move from std::optional<T>

Consider the following example where we parse data and pass the result to the next function: Content Parse(const std::…

c++ std c++14 boost-optional
Why is the destructor of a future returned from `std::async` blocking?

When trying to answer another Stackoverflow question, I realized that this simple C++11 snippet is implicitly blocking the calling thread: …

c++ multithreading c++11 asynchronous std
Concatenate boost::dynamic_bitset or std::bitset

what is the best way to concatenate 2 bitsets? For example i've got boost::dynamic_bitset<> test1( std::string("1111") ); …

c++ boost std bitset
std::mem_fun vs std::mem_fn

What is the difference between std::mem_fun and std::mem_fn? Why is the naming so confusing? Boost's documentation …

c++ c++11 std member-functions
unresolved external symbol “std::basic_string”

I am trying to compile a project with Maven via the Visual C++ compiler and I keep getting linkage errors …

c++ visual-c++ maven std linkage
Why is std::hash a struct instead of a function?

Standard library implements std::hash as a template struct that is specialized for different types. It is used like this: #…

c++ c++11 std c++-standard-library stdhash
What would be a "Hello, World!" example for "std::ref"?

Can somebody give a simple example which demonstrates the functionality of std::ref? I mean an example in which some …

c++ c++11 std ref