Template Struct partition_by
Defined in File partition.hpp
Struct Documentation
-
template<typename Pivot, template<typename, typename> class Rel, typename ...Ts>
struct partition_by Partition a pack
Ts...
intopass
/fail
buckets.Builds two typelists:
pass:
elementsT
whereRel<Pivot, T>::value
istrue
fail:
the remaining elements
Remark
The concatenation order of results is stable relative to the original order (within each bucket).
- Template Parameters:
Pivot – The pivot type used by the relation.
Rel – A binary template
Rel<L,R>
exposingstatic constexpr bool value
.Ts – Elements to partition.