Top "Stl" questions

The Standard Template Library, or STL, is a C++ library of generic containers, iterators, algorithms, and function objects.

What is the difference between const_iterator and non-const iterator in the C++ STL?

What is the difference between a const_iterator and an iterator and where would you use one over the other?

c++ stl iterator constants
What's the difference between "STL" and "C++ Standard Library"?

Someone brought this article to my attention that claims (I'm paraphrasing) the STL term is misused to refer to the …

c++ stl std c++-standard-library c++-faq
How to implode a vector of strings into a string (the elegant way)

I'm looking for the most elegant way to implode a vector of strings into a string. Below is the solution …

c++ string stl stdstring implode
how do you insert the value in a sorted vector?

ALL, This question is a continuation of this one. I think that STL misses this functionality, but it just my …

c++ sorting vector stl insertion-sort
Converting ostream into standard string

I am very new to the C++ STL, so this may be trivial. I have a ostream variable with some …

c++ stl iostream
Inspecting standard container (std::map) contents with gdb

Supposing to have something like this: #include <map> int main(){ std::map<int,int> m; m[1] = 2; …

c++ stl map gdb
What is the purpose of std::make_pair vs the constructor of std::pair?

What is the purpose of std::make_pair? Why not just do std::pair<int, char>(0, 'a')? Is …

c++ stl std-pair
Why is std::map implemented as a red-black tree?

Why is std::map implemented as a red-black tree? There are several balanced binary search trees (BSTs) out there. What …

c++ dictionary data-structures stl binary-search-tree
Which STL container should I use for a FIFO?

Which STL container would fit my needs best? I basically have a 10 elements wide container in which I continually push_…

c++ stl fifo
map<string, string> how to insert data in this map?

I need to store strings in key value format. So am using Map like below. #include<map> using …

c++ stl stdstring stdmap