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
lhsis 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
lhsis 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
lhsis 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
lhsis 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
truefor elements that are less than the pivot, andfalseotherwise.-
explicit
less_than(T const &pivot, Compare compare = Compare())¶ Constructor. Saves a copy of the pivot in
m_pivotand 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
truefor elements that are greater than the pivot, andfalseotherwise.-
explicit
greater_than(T const &pivot, Compare compare = Compare())¶ Constructor. Saves a copy of the pivot in
m_pivotand 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