Functional¶
-
template <typename T> less
Function object for performing comparisons. Unless specialized, invokes
operator<
on typeT
.-
constexpr bool
operator()
(T const &lhs, T const &rhs) const¶ Checks if
lhs
is less thanrhs
.
-
result_type = bool
-
first_argument_type = T
-
second_argument_type = T
-
constexpr bool
-
template <typename T> less_equal
Function object for performing comparisons. Unless specialized, invokes
operator<=
on typeT
.-
constexpr bool
operator()
(T const &lhs, T const &rhs) const¶ Checks if
lhs
is less or equal thanrhs
.
-
result_type = bool
-
first_argument_type = T
-
second_argument_type = T
-
constexpr bool
-
template <typename T> greater
Function object for performing comparisons. Unless specialized, invokes
operator>
on typeT
.-
constexpr bool
operator()
(T const &lhs, T const &rhs) const¶ Checks if
lhs
is greater thanrhs
.
-
result_type = bool
-
first_argument_type = T
-
second_argument_type = T
-
constexpr bool
-
template <typename T> greater_equal
Function object for performing comparisons. Unless specialized, invokes
operator>=
on typeT
.-
constexpr bool
operator()
(T const &lhs, T const &rhs) const¶ Checks if
lhs
is greater or equal thanrhs
.
-
result_type = bool
-
first_argument_type = T
-
second_argument_type = T
-
constexpr bool
-
template <typename T, typename Compare = std::less<T>> less_than
Unary predicate that is constructed with a given pivot element and then returns
true
for elements that are less than the pivot, andfalse
otherwise.-
explicit
less_than
(T const &pivot, Compare compare = Compare())¶ Constructor. Saves a copy of the pivot in
m_pivot
and a copy of the compare object inm_compare
.
-
bool
operator()
(T const &value) const¶ Returns the value of evaluating
m_compare(value, m_pivot)
.
-
result_type = bool
-
argument_type = T
-
protected T
m_pivot
¶
-
protected Compare
m_compare
¶
-
explicit
-
template <typename T, typename Compare = std::greater<T>> greater_than
Unary predicate that is constructed with a given pivot element and then returns
true
for elements that are greater than the pivot, andfalse
otherwise.-
explicit
greater_than
(T const &pivot, Compare compare = Compare())¶ Constructor. Saves a copy of the pivot in
m_pivot
and a copy of the compare object inm_compare
.
-
bool
operator()
(T const &value) const¶ Returns the value of evaluating
m_compare(value, m_pivot)
.
-
result_type = bool
-
argument_type = T
-
protected T
m_pivot
¶
-
protected Compare
m_compare
¶
-
explicit