81 template <
class _Arg,
class _Result>
88 template <
class _Arg1,
class _Arg2,
class _Result>
97 namespace function_detail
108 {
static_cast<bool>(x <
y) }
noexcept;
119 {
T(x +
y) }
noexcept;
126 {
T(x -
y) }
noexcept;
133 {
T(x *
y) }
noexcept;
140 {
T(x /
y) }
noexcept;
147 {
T(x %
y) }
noexcept;
161 {
static_cast<bool>(x ==
y) }
noexcept;
168 {
static_cast<bool>(x !=
y) }
noexcept;
175 {
static_cast<bool>(x >
y) }
noexcept;
182 {
static_cast<bool>(x >=
y) }
noexcept;
189 {
static_cast<bool>(x <=
y) }
noexcept;
196 {
static_cast<bool>(x
and y) }
noexcept;
203 {
static_cast<bool>(x or
y) }
noexcept;
210 {
static_cast<bool>(not x) }
noexcept;
287 return static_cast<bool>(__x == __y);
298 return static_cast<bool>(__x != __y);
309 return static_cast<bool>(__x > __y);
322 return static_cast<bool>(__x < __y);
333 return static_cast<bool>(__x >= __y);
344 return static_cast<bool>(__x <= __y);
355 return static_cast<bool>(__x
and __y);
366 return static_cast<bool>(__x or __y);
377 return static_cast<bool>(not __x);
382 template <
class _Predicate>
384 :
public unary_function <typename _Predicate::argument_type, bool>
403 const noexcept(
noexcept(not
static_cast<bool>(
_M_pred(__x))))
405 return not
static_cast<bool>(
_M_pred(__x));
410 template <
class _Predicate>
inline
417 template <
class _Predicate>
420 typename _Predicate::second_argument_type,
433 const typename _Predicate::second_argument_type& __y)
const
440 template <
class _Predicate>
inline
447 template <
class _Operation>
449 :
public unary_function<typename _Operation::second_argument_type,
450 typename _Operation::result_type>
456 typename _Operation::first_argument_type
value;
461 const typename _Operation::first_argument_type& __y)
464 typename _Operation::result_type
465 operator () (
const typename _Operation::second_argument_type& __x)
const
470 typename _Operation::result_type
471 operator () (
typename _Operation::second_argument_type& __x)
const
478 template <
class _Operation,
class _Tp>
inline
481 typedef typename _Operation::first_argument_type _Arg1_type;
486 template <
class _Operation>
489 typename _Operation::result_type>
495 typename _Operation::second_argument_type
value;
500 const typename _Operation::second_argument_type& __y)
503 typename _Operation::result_type
504 operator () (
const typename _Operation::first_argument_type& __x)
const
509 typename _Operation::result_type
517 template <
class _Operation,
class _Tp>
inline
520 typedef typename _Operation::second_argument_type _Arg2_type;
526 template <
class _Arg,
class _Result>
547 template <
class _Arg,
class _Result>
inline
554 template <
class _Arg1,
class _Arg2,
class _Result>
576 template <
class _Arg1,
class _Arg2,
class _Result>
inline
577 pointer_to_binary_function<_Arg1, _Arg2, _Result>
597 template <
class _Pair>
605 const typename _Pair::first_type&
operator () (
const _Pair& __x)
const
611 template <
class _Pair>
619 const typename _Pair::second_type&
operator () (
const _Pair& __x)
const
626 template <
class _Ret,
class _Tp>
636 return (__p->*
_M_f)();
645 template <
class _Ret,
class _Tp>
655 return (__p->*
_M_f) ();
664 template <
class _Ret,
class _Tp>
674 return (__r.*
_M_f)();
683 template <
class _Ret,
class _Tp>
693 return (__r.*
_M_f)();
702 template <
class _Ret,
class _Tp,
class _Arg>
712 return (__p->*
_M_f) (__x);
721 template <
class _Ret,
class _Tp,
class _Arg>
731 return (__p->*
_M_f)(__x);
736 _Ret (_Tp::*
_M_f) (_Arg) const;
740 template <
class _Ret,
class _Tp,
class _Arg>
750 return (__r.*
_M_f)(__x);
759 template <
class _Ret,
class _Tp,
class _Arg>
769 return (__r.*
_M_f)(__x);
774 _Ret (_Tp::*
_M_f) (_Arg) const;
853 template <
class _Tp,
class _Arg>
871 template <
class _Tp,
class _Arg>
890 template <
class _Tp,
class _Arg>
909 template <
class _Tp,
class _Arg>
929 template <
class _Ret,
class _Tp>
inline
935 template <
class _Ret,
class _Tp>
inline
941 template <
class _Ret,
class _Tp>
inline
947 template <
class _Ret,
class _Tp>
inline
953 template <
class _Ret,
class _Tp,
class _Arg>
inline
959 template <
class _Ret,
class _Tp,
class _Arg>
inline
965 template <
class _Ret,
class _Tp,
class _Arg>
inline
971 template <
class _Ret,
class _Tp,
class _Arg>
inline
972 const_mem_fun1_ref_t<_Ret, _Tp, _Arg>
990 template <
class T,
class Compare>
inline
993 return cmp (op1, op2);
1001 template <
class T,
class Compare>
inline
1004 return less_than <T, Compare> (op1, op2,
cmp);
1019 template <
class T,
class Compare>
inline
1036 template <
class T,
class Compare>
inline
1039 return less_or_equal_than<T, Compare>(op1, op2,
cmp);
1051 template <
class T,
class Compare>
inline
1054 return not less_or_equal_than<T, Compare>(op1, op2,
1055 std::forward<Compare>(
cmp));
1062 template <
class T,
class Compare>
inline
1065 return not less_or_equal_than<T, Compare> (op1, op2,
cmp);
1076 template <
class T,
class Compare>
inline
1078 Compare &&
cmp = Compare())
1080 return not less_than<T, Compare> (op1, op2, std::forward<Compare>(
cmp));
1087 template <
class T,
class Compare>
inline
1090 return not less_than<T, Compare> (op1, op2,
cmp);
1101 template <
class T,
class Compare>
inline
1104 return static_cast<bool>(
cmp(op1, op2)) or
static_cast<bool>(
cmp(op2, op1));
1111 template <
class T,
class Compare>
inline
1114 return static_cast<bool>(
cmp(op1, op2)) or
static_cast<bool>(
cmp(op2, op1));
1125 template <
class T,
class Compare>
inline
1128 return not no_equals <T, Compare> (op1, op2, std::forward<Compare>(
cmp));
1135 template <
class T,
class Compare>
inline
1138 return not no_equals <T, Compare> (op1, op2,
cmp);
1151 template <
class T,
class Compare>
1173 noexcept(
noexcept(
static_cast<bool>(
cmp(op2, op1))))
1175 return static_cast<bool>(
cmp(op2, op1));
1183 template <
class T,
class Compare>
1188 if (Compare () (op1, op2))
1191 if (Compare () (op2, op1))
Performs order reversal of Compare by swapping operands.
constexpr Inversed_Compare(const Compare &__cmp) noexcept
The inversion of __cmp, which is not copied.
Inversed_Compare(Compare &&cmp=Compare()) noexcept
constexpr bool operator()(const T &op1, const T &op2) const noexcept(noexcept(static_cast< bool >(cmp(op2, op1))))
bool operator()(const typename _Predicate::first_argument_type &__x, const typename _Predicate::second_argument_type &__y) const
binary_negate(const _Predicate &__x)
binder1st(const _Operation &__x, const typename _Operation::first_argument_type &__y)
_Operation::first_argument_type value
_Operation::result_type operator()(const typename _Operation::second_argument_type &__x) const
_Operation::second_argument_type value
_Operation::result_type operator()(const typename _Operation::first_argument_type &__x) const
binder2nd(const _Operation &__x, const typename _Operation::second_argument_type &__y)
const_mem_fun1_ref_t(void(_Tp::*__pf)(_Arg) const)
_Ret(_Tp::* _M_f)(_Arg) const
const_mem_fun1_ref_t(_Ret(_Tp::*__pf)(_Arg) const)
_Ret operator()(const _Tp &__r, _Arg __x) const
const_mem_fun1_t(void(_Tp::*__pf)(_Arg) const)
_Ret operator()(const _Tp *__p, _Arg __x) const
_Ret(_Tp::* _M_f)(_Arg) const
const_mem_fun1_t(_Ret(_Tp::*__pf)(_Arg) const)
const_mem_fun_ref_t(void(_Tp::*__pf)() const)
_Ret operator()(const _Tp &__r) const
const_mem_fun_ref_t(_Ret(_Tp::*__pf)() const)
_Ret(_Tp::* _M_f)() const
const_mem_fun_t(void(_Tp::*__pf)() const)
const_mem_fun_t(_Ret(_Tp::*__pf)() const)
_Ret(_Tp::* _M_f)() const
_Ret operator()(const _Tp *__p) const
mem_fun1_ref_t(void(_Tp::*__pf)(_Arg))
_Ret operator()(_Tp &__r, _Arg __x) const
mem_fun1_ref_t(_Ret(_Tp::*__pf)(_Arg))
mem_fun1_t(void(_Tp::*__pf)(_Arg))
_Ret operator()(_Tp *__p, _Arg __x) const
mem_fun1_t(_Ret(_Tp::*__pf)(_Arg))
mem_fun_ref_t(void(_Tp::*__pf)())
_Ret operator()(_Tp &__r) const
mem_fun_ref_t(_Ret(_Tp::*__pf)())
mem_fun_t(void(_Tp::*__pf)())
_Ret operator()(_Tp *__p) const
mem_fun_t(_Ret(_Tp::*__pf)())
pointer_to_binary_function()
pointer_to_binary_function(_Result(*__x)(_Arg1, _Arg2))
_Result(* _M_ptr)(_Arg1, _Arg2)
_Result operator()(_Arg1 __x, _Arg2 __y) const
pointer_to_unary_function()
pointer_to_unary_function(_Result(*__x)(_Arg))
_Result operator()(_Arg __x) const
unary_negate(const _Predicate &__x)
bool operator()(const typename _Predicate::argument_type &__x) const noexcept(noexcept(not static_cast< bool >(_M_pred(__x))))
The negation of what the predicate says of __x.
Whether T(x / y) compiles and cannot throw, for divides.
Whether x == y compiles and cannot throw, for equal_to.
Whether x >= y compiles and cannot throw, for greater_equal.
Whether x > y compiles and cannot throw, for greater.
Whether x <= y compiles and cannot throw, for less_equal.
Whether x < y compiles and cannot throw, nor the conversion of its result to bool,...
Whether x and y compiles and cannot throw, for logical_and.
Whether not x compiles and cannot throw, for logical_not.
Whether x or y compiles and cannot throw, for logical_or.
Whether T(x - y) compiles and cannot throw, for minus.
Whether T(x % y) compiles and cannot throw, for modulus.
Whether T(x * y) compiles and cannot throw, for multiplies.
Whether T(-x) compiles and cannot throw, for negate.
Whether x != y compiles and cannot throw, for not_equal_to.
Whether T(x + y) compiles and cannot throw, for plus.
int cmp(const __gmp_expr< T, U > &expr1, const __gmp_expr< V, W > &expr2)
Main namespace for Aleph-w library functions.
mem_fun_ref_t< _Ret, _Tp > mem_fun_ref(_Ret(_Tp::*__f)())
bool less_than(const T &op1, const T &op2, Compare &cmp)
Determines if op1 is less than op2 using a comparison operator.
mem_fun_t< _Ret, _Tp > mem_fun(_Ret(_Tp::*__f)())
binder2nd< _Operation > bind2nd(const _Operation &__fn, const _Tp &__x)
std::decay_t< typename HeadC::Item_Type > T
and
Check uniqueness with explicit hash + equality functors.
bool greater_than(const T &op1, const T &op2, Compare &&cmp=Compare())
Determines if op1 is greater than op2 using a comparison operator.
unary_negate< _Predicate > not1(const _Predicate &__pred)
bool are_equals(const T &op1, const T &op2, Compare &&cmp=Compare())
Determines if operands are equal using a comparison operator.
pointer_to_unary_function< _Arg, _Result > ptr_fun(_Result(*__x)(_Arg))
binder1st< _Operation > bind1st(const _Operation &__fn, const _Tp &__x)
bool less_or_equal_than(const T &op1, const T &op2, Compare &cmp)
Determines if op1 is less than or equal to op2 using a comparison operator.
binary_negate< _Predicate > not2(const _Predicate &__pred)
bool greater_or_equal_than(const T &op1, const T &op2, Compare &&cmp=Compare())
Determines if op1 is greater than or equal to op2 using a comparison operator.
bool no_equals(const T &op1, const T &op2, Compare &&cmp=Compare())
Determines if operands are not equal using a comparison operator.
bool operator()(const T &op1, const T &op2) const
_Tp & operator()(_Tp &__x) const
_Pair::first_type & operator()(_Pair &__x) const
_Pair::second_type & operator()(_Pair &__x) const
_Arg1 first_argument_type
_Arg2 second_argument_type
_Tp operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_divides< _Tp >)
bool operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_equal_to< _Tp >)
bool operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_greater_equal< _Tp >)
bool operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_greater< _Tp >)
bool operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_less_equal< _Tp >)
bool operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_less_than< _Tp >)
bool operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_logical_and< _Tp >)
bool operator()(const _Tp &__x) const noexcept(function_detail::nothrow_logical_not< _Tp >)
bool operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_logical_or< _Tp >)
_Tp operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_minus< _Tp >)
_Tp operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_modulus< _Tp >)
_Tp operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_multiplies< _Tp >)
_Tp operator()(const _Tp &__x) const noexcept(function_detail::nothrow_negate< _Tp >)
bool operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_not_equal_to< _Tp >)
_Tp operator()(const _Tp &__x, const _Tp &__y) const noexcept(function_detail::nothrow_plus< _Tp >)