Template Struct cmp

Struct Documentation

template<typename Cmp, HasStaticSize A, HasStaticSize B>
struct cmp

Compare two HasStaticSize types using a standard comparator.

Template Parameters:
  • Cmp – A callable like std::less<>, std::greater_equal<>, etc.

  • A – Left operand (provides A::size).

  • B – Right operand (provides B::size).

Public Static Attributes

static constexpr bool value = Cmp{}(static_cast<std::size_t>(A::size), static_cast<std::size_t>(B::size))