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/failbuckets.Builds two typelists:
pass:elementsTwhereRel<Pivot, T>::valueistruefail: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.