tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
stable_partition.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename BidirIt, typename Predicate>
constexpr auto stable_partition (BidirIt f, BidirIt l, Predicate p) -> BidirIt
 Reorders the elements in the range [first, last) in such a way that all elements for which the predicate p returns true precede the elements for which predicate p returns false. Relative order of the elements is preserved.