Top "Std" questions

The C++ Standard Library, and its namespace.

What's the difference between cstdlib and stdlib.h?

When writing C++ code is there any difference between: #include <cstdlib> and #include <stdlib.h> other …

c++ std
Why Can't I store references in a `std::map` in C++?

I understand that references are not pointers, but an alias to an object. However, I still don't understand what exactly …

c++ dictionary reference std stdmap
Most efficient way to assign values to maps

Which way to assign values to a map is most efficient? Or are they all optimized to the same code (…

c++ dictionary std stdmap c++-standard-library
std has no member 'getline'?

I'm trying to use std::getline, but my compiler is telling me that getline isn't identified? #include <iostream> #…

c++ io std getline
Assigning existing values to smart-ptrs?

I am just learning about smart pointers, and I am having trouble assigning a pre-existing location of a variable to …

c++ std shared-ptr tr1
C++ OpenMP Parallel For Loop - Alternatives to std::vector

Based on this thread, OpenMP and STL vector, which data structures are good alternatives for a shared std::vector in …

c++ openmp std
STD linker error with Apple LLVM 4.1

I've got a large static library in C++ with bits of Objective-C originally built for iOS (armv7). I built a …

c++ xcode macos linker-errors std
find in std::vector<std::pair>

I have a vector of pairs. The first in the pair is of type std::string and the second is …

c++ boost std c++98
How can I get all the unique keys in a multimap

I have a multimap and I want get all the unique keys in it to be stored in a vector. …

c++ stl std multimap
std::put_time implementation status in GCC?

I was trying to compile this example program using GCC (tested versions 4.5.1, 4.6.3, 4.8.4): #include <iostream> #include <iomanip> #…

c++ gcc c++11 std chrono