Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
You've currently chosen the 1.91.0 version. If a newer release comes out, you will continue to view the 1.91.0 version, not the new latest release.
boost::join_if — Conditional join algorithm.
// In header: <boost/algorithm/string/join.hpp> template<typename SequenceSequenceT, typename Range1T, typename PredicateT> range_value< SequenceSequenceT >::type join_if(const SequenceSequenceT & Input, const Range1T & Separator, PredicateT Pred);
This algorithm joins all strings in a 'list' into one long string. Segments are concatenated by given separator. Only segments that satisfy the predicate will be added to the result.
![]() |
Note |
|---|---|
This function provides the strong exception-safety guarantee |
Parameters: |
|
||||||
Returns: |
Concatenated string. |