stl (773)

  1. c++ - emplace_back vs push_back performance - push_back vs emplace_back
  2. c++ vector insert - Appending a vector to a vector
  3. merge two sorted vectors c++ - Concatenating two std::vectors
  4. c++11 iterate over vector - Iteration over std::vector: unsigned vs signed index variable
  5. c++ vector remove element by index - How do I erase an element from std::vector<> by index?
  6. difference bw standard template library and c++ standard library - What's the difference between “STL” and “C++ Standard Library”?
  7. c++ format string like printf - std::string formatting like sprintf
  8. c++ map find value - How to find if a given key exists in a C++ std::map
  9. c++ boost tree - Why does the C++ STL not provide any “tree” containers?
  10. c++ vector of references to objects - Why can't I make a vector of references?
  11. c++ sort descending array - Sorting a vector in descending order
  12. c++ set add - How to check that an element is in a std::set?
  13. c++ remove duplicates from vector without sorting - What's the most efficient way to erase duplicates and sort a vector?
  14. subvector of vector c++ - Best way to extract a subvector from a vector?
  15. c++ - unique_ptr move - Is std::unique_ptr<T> required to know the full definition of T?

  16. c++ vector remove element by index - C++ Erase vector element by value rather than by position?
  17. c++ iterator vs index performance - Why use iterators instead of array indices?
  18. c++ string length vs size - std::string length() and size() member functions
  19. stl c++ - Why is the C++ STL is so heavily based on templates? (and not on *interfaces*)
  20. c++ - auto_ptr example - Why is it wrong to use std::auto_ptr<> with standard containers?