Did Boost::algorithms get subsumed into standard libraries?

148 Views Asked by At

Starting in C++11 (I think) a lot of Boost functionality was available in the STL, or in an extension TR1 (again, if memory serves).

I'm struggling to tell specifically which things were and were not included in C++11 and later versions (and in MSVC++ versions).

Specifically this very old question about joining vector<string> has a nice Boost-based answer: https://stackoverflow.com/a/6334153/197229.

I don't want to add boost dependency to my project so - is this functionality now available in standard libraries?

2

There are 2 best solutions below

0
Marshall Clow On

boost::algorithm::join is not part of the C++ standard library. (nor something with equivalent functionality).

More generally, sometimes things are implemented in Boost.Algorithm and then proposed for standardization (Boyer-Moore, for example), and sometimes I implement things that have been added to the standard library in Boost.Algorithm for people who can't/won't use the latest C++ version (any_of, for example).

0
NathanOliver On

boost::algorithm::join has not made its way into the standard library as of yet. There is an open paper (N3594) to have it added to the library, but it is sitting in the Library Evolution working group currently.

You'll either need to use one of the other implementations from that Q&A pair or include boost.