header_utils
Loading...
Searching...
No Matches
ghassanpl::pred Namespace Reference

Contains functions that return predicates; appropriate for functions like std::all_of. More...

Functions

constexpr auto always_true ()
template<typename T>
constexpr auto equal_to (T &&val)
template<typename T>
constexpr auto not_equal_to (T &&val)
template<typename T>
constexpr auto less_than (T &&val)
template<typename T>
constexpr auto less_than_or_equal_to (T &&val)
template<typename T>
constexpr auto greater_than (T &&val)
template<typename T>
constexpr auto greater_than_or_equal_to (T &&val)
template<typename T>
constexpr auto eq (T &&val)
template<typename T>
constexpr auto ne (T &&val)
template<typename T>
constexpr auto lt (T &&val)
template<typename T>
constexpr auto le (T &&val)
template<typename T>
constexpr auto gt (T &&val)
template<typename T>
constexpr auto ge (T &&val)
constexpr auto is_null () noexcept
constexpr auto is_not_null () noexcept
constexpr auto is_empty () noexcept
constexpr auto is_not_empty () noexcept
constexpr auto is_true () noexcept
constexpr auto is_false () noexcept
template<typename T>
constexpr auto is_in (T &&val)
template<typename... FUNCS>
constexpr auto when_any (FUNCS &&... funcs)
template<typename... FUNCS>
constexpr auto when_all (FUNCS &&... funcs)
template<typename... FUNCS>
constexpr auto when_none (FUNCS &&... funcs)

Detailed Description

Contains functions that return predicates; appropriate for functions like std::all_of.

Function Documentation

◆ always_true()

auto ghassanpl::pred::always_true ( )
nodiscardconstexpr

Definition at line 85 of file functional.h.

◆ eq()

template<typename T>
auto ghassanpl::pred::eq ( T && val)
nodiscardconstexpr

Definition at line 94 of file functional.h.

◆ equal_to()

template<typename T>
auto ghassanpl::pred::equal_to ( T && val)
nodiscardconstexpr

Definition at line 87 of file functional.h.

◆ ge()

template<typename T>
auto ghassanpl::pred::ge ( T && val)
nodiscardconstexpr

Definition at line 99 of file functional.h.

◆ greater_than()

template<typename T>
auto ghassanpl::pred::greater_than ( T && val)
nodiscardconstexpr

Definition at line 91 of file functional.h.

◆ greater_than_or_equal_to()

template<typename T>
auto ghassanpl::pred::greater_than_or_equal_to ( T && val)
nodiscardconstexpr

Definition at line 92 of file functional.h.

◆ gt()

template<typename T>
auto ghassanpl::pred::gt ( T && val)
nodiscardconstexpr

Definition at line 98 of file functional.h.

◆ is_empty()

auto ghassanpl::pred::is_empty ( )
nodiscardconstexprnoexcept

Definition at line 103 of file functional.h.

◆ is_false()

auto ghassanpl::pred::is_false ( )
nodiscardconstexprnoexcept

Definition at line 106 of file functional.h.

◆ is_in()

template<typename T>
auto ghassanpl::pred::is_in ( T && val)
nodiscardconstexpr

Definition at line 107 of file functional.h.

◆ is_not_empty()

auto ghassanpl::pred::is_not_empty ( )
nodiscardconstexprnoexcept

Definition at line 104 of file functional.h.

◆ is_not_null()

auto ghassanpl::pred::is_not_null ( )
nodiscardconstexprnoexcept

Definition at line 102 of file functional.h.

◆ is_null()

auto ghassanpl::pred::is_null ( )
nodiscardconstexprnoexcept

Definition at line 101 of file functional.h.

◆ is_true()

auto ghassanpl::pred::is_true ( )
nodiscardconstexprnoexcept

Definition at line 105 of file functional.h.

◆ le()

template<typename T>
auto ghassanpl::pred::le ( T && val)
nodiscardconstexpr

Definition at line 97 of file functional.h.

◆ less_than()

template<typename T>
auto ghassanpl::pred::less_than ( T && val)
nodiscardconstexpr

Definition at line 89 of file functional.h.

◆ less_than_or_equal_to()

template<typename T>
auto ghassanpl::pred::less_than_or_equal_to ( T && val)
nodiscardconstexpr

Definition at line 90 of file functional.h.

◆ lt()

template<typename T>
auto ghassanpl::pred::lt ( T && val)
nodiscardconstexpr

Definition at line 96 of file functional.h.

◆ ne()

template<typename T>
auto ghassanpl::pred::ne ( T && val)
nodiscardconstexpr

Definition at line 95 of file functional.h.

◆ not_equal_to()

template<typename T>
auto ghassanpl::pred::not_equal_to ( T && val)
nodiscardconstexpr

Definition at line 88 of file functional.h.

◆ when_all()

template<typename... FUNCS>
auto ghassanpl::pred::when_all ( FUNCS &&... funcs)
nodiscardconstexpr

Definition at line 119 of file functional.h.

◆ when_any()

template<typename... FUNCS>
auto ghassanpl::pred::when_any ( FUNCS &&... funcs)
nodiscardconstexpr

Definition at line 110 of file functional.h.

◆ when_none()

template<typename... FUNCS>
auto ghassanpl::pred::when_none ( FUNCS &&... funcs)
nodiscardconstexpr

Definition at line 128 of file functional.h.