Top "Std" questions

The C++ Standard Library, and its namespace.

'sqrt' is not a member of 'std'

I compile my program in linux - it has the following line : std::sqrt((double)num); On windows it is …

c++ math std sqrt
Android ndk std::to_string support

I'm using android NDK r9d and toolchain 4.8 but I'm not able to use std::to_string function, compiler throws …

android c++ android-ndk std c++-standard-library
do I need to close a std::fstream?

Possible Duplicate: Do I need to manually close a ifstream? Do I need to call fstream.close() or is fstream …

c++ std fstream ofstream
Compiling with Clang using Libc++ undefined references

The first couple are too long to reference. I get this error when I try to compile clang++ -stdlib=libc++ ../…

c++ clang std undefined-reference libc++
How do I combine hash values in C++0x?

C++0x adds hash<...>(...). I could not find a hash_combine function though, as presented in boost. What …

c++ c++11 boost hash std
find element with max value from std::map

I'm trying to get the element with max value from std::map, int main() { map<int, int> m; …

c++ std stdmap
Is the C++ std::set thread-safe?

I've a question about the thread safety of std::set. As far as I know I can iterate over a …

c++ stl std stdset
Convert uint64_t to std::string

How can I transfer uint64_t value to std::string? I need to construct the std::string containing this value …

c++ string std uint64
How to use std::async on a member function?

How can I operate std::async call on a member function? Example: class Person{ public: void sum(int i){ cout &…

c++ multithreading c++11 std
using BOOST_FOREACH with std::map

I'd like to iterate over a std::map using BOOST_FOREACH and edit the values. I can't quite get it. …

c++ boost foreach maps std