Template Struct PredBy

Nested Relationships

Nested Types

Struct Documentation

template<typename Cmp>
struct PredBy

Build a pivot-relative predicate from a comparator.

PredBy<Cmp>::t<Pivot, Elem>::value is cmp<Cmp, Elem, Pivot>::value. Useful in partitioning where you compare each element to a fixed pivot.

Template Parameters:

Cmp – Comparator applied to (Elem::size, Pivot::size).

template<HasStaticSize Pivot, HasStaticSize Elem>
struct t

Public Static Attributes

static constexpr bool value = cmp<Cmp, Elem, Pivot>::value