Boost

Boost is a large collection of high-quality libraries intended for use in C++

Stl

The Standard Template Library, or STL, is a C++ library of generic containers, iterators, algorithms, and function objects. When C++ was standardised, large parts of the STL were adopted into the Standard Library, and these parts in the Standard Library are also sometimes erroneously referred to collectively as "the STL".

Learning parts better

Example

"C++ s stl is getting better and better yet it s not nearly as huge as boost and is not intended to"

from question  

Boost..... what is all the fuss about?

"Once you re past the basics with c++ learning how to use parts of stl and then how it works will be better than tackling boost"

from question  

Should I become proficient with STL libraries before learning BOOST alternatives?

"I ve used both for the same project boost is better integrated with the stl and especially c++ exceptions"

from question  

Exposing a C++ API to Python

Standard template richer

Example

"Boost libraries are generally less mature and less standard than stl"

from question  

Should I become proficient with STL libraries before learning BOOST alternatives?

"As for not reinventing the wheel like many have said already make sure to first explore the possibilities in the standard template library stl which is much richer than you might think and then look at boost www.boost.org which has libraries for a lot of diverse purposes and they are extremely high quality and some are just works of art like spirit proto lambda and mpl"

from question  

C to C++ : Transitioning from one language to the other

Others

Example

So either use boost as suggested by other in this thread or write your own function which you essentially already did -;indeed the stl does not have a simple std contains function

from question  

Check whether an element is in std::initializer_list

I recommend nicola bonelli s answer to be accepted. that s part of the stl and doesn t require using boost if your code doesn t use boost thanks to the commenters for pointing this out;boost has a utility called next and its inverse prior for just that purpose

from question  

Compare two consecutive elements in std::list

I don t want to use boost because that s a library i haven t used extensively yet and i m doing this partly as an exercise to gain greater mastery over the stl

from question  

Can a class contain a list of itself?

Boost makes it much neater;i never use the stl

from question  

Is wrapping STL idioms for readability a good idea?

You can use boost to do it though requires a recent c++ compiler such as msvc 2010 or gcc 4.5;sadly the stl doesn t allow you to split a string on a separator

from question  

C++ what is the fastest way of storing comma separated int in std::vector

Clarification boost did not boost up my ood skills;stl boost is a tool for the job

from question  

Does using boost pointers change your OO design methodology?

While boost is more modern c++ it also harder to use for non trivial tasks - and without a modern c++ experience and deep stl knowledge it is difficult to use correctly

from question  

Boost vs ACE C++ cross platform performance comparison?

Boost python is a richer library with size cost where as pybind11 is header only and it supports stl which makes life easier to pass on basic data structure without writing any code

from question  

Pybind11 or Boost.Python or neither-

Boost s io stream might be a better solution than stl s own stream

from question  

Can one read a remote file as an istream with libcurl?

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0