libstdc++
predefined_ops.h File Reference

Go to the source code of this file.

Namespaces

namespace  __gnu_cxx
 

Typedefs

template<typename _Fn >
using __gnu_cxx::__ops::__by_ref_or_value_fn = std::__conditional_t< std::__or_< std::is_empty< _Fn >, std::is_scalar< _Fn > >::value, _Fn, _Fn & >
 
template<typename _Func , typename _Value >
using __gnu_cxx::__ops::_Comp_with_val_1st = _Comp_with_val< _Func, _Value, false >
 
template<typename _Func , typename _Value >
using __gnu_cxx::__ops::_Comp_with_val_2nd = _Comp_with_val< _Func, _Value, true >
 
typedef std::equal_to< void > __gnu_cxx::__ops::equal_to
 
typedef std::less< void > __gnu_cxx::__ops::less
 

Functions

template<typename _Value >
constexpr _Comp_with_val_2nd< equal_to, _Value > __gnu_cxx::__ops::__equal_to (const _Value &__val)
 
template<typename _Func , typename _Value >
constexpr _Comp_with_val_1st< _Func, _Value > __gnu_cxx::__ops::bind1st (_Func &__f, const _Value &__val)
 
template<typename _Func , typename _Value >
constexpr _Comp_with_val_2nd< _Func, _Value > __gnu_cxx::__ops::bind2nd (_Func &__f, const _Value &__val)
 
template<typename _Func >
constexpr _Unary_negate< _Func > __gnu_cxx::__ops::not1 (_Func &__f)
 

Detailed Description

This is an internal header file, included by other library headers. You should not attempt to use it directly. Instead, include <algorithm>.

Definition in file predefined_ops.h.

Typedef Documentation

◆ __by_ref_or_value_fn

template<typename _Fn >
using __gnu_cxx::__ops::__by_ref_or_value_fn = typedef std::__conditional_t<std::__or_<std::is_empty<_Fn>, std::is_scalar<_Fn> >::value, _Fn, _Fn&>

Definition at line 52 of file predefined_ops.h.

◆ _Comp_with_val_1st

template<typename _Func , typename _Value >
using __gnu_cxx::__ops::_Comp_with_val_1st = typedef _Comp_with_val<_Func, _Value, false>

Definition at line 89 of file predefined_ops.h.

◆ _Comp_with_val_2nd

template<typename _Func , typename _Value >
using __gnu_cxx::__ops::_Comp_with_val_2nd = typedef _Comp_with_val<_Func, _Value, true>

Definition at line 91 of file predefined_ops.h.

◆ equal_to

Definition at line 46 of file predefined_ops.h.

◆ less

Definition at line 47 of file predefined_ops.h.

Function Documentation

◆ __equal_to()

template<typename _Value >
constexpr _Comp_with_val_2nd< equal_to, _Value > __gnu_cxx::__ops::__equal_to ( const _Value &  __val)
inlineconstexpr

Definition at line 203 of file predefined_ops.h.

◆ bind1st()

template<typename _Func , typename _Value >
constexpr _Comp_with_val_1st< _Func, _Value > __gnu_cxx::__ops::bind1st ( _Func &  __f,
const _Value &  __val 
)
inlineconstexpr

Definition at line 192 of file predefined_ops.h.

◆ bind2nd()

template<typename _Func , typename _Value >
constexpr _Comp_with_val_2nd< _Func, _Value > __gnu_cxx::__ops::bind2nd ( _Func &  __f,
const _Value &  __val 
)
inlineconstexpr

Definition at line 197 of file predefined_ops.h.

◆ not1()

template<typename _Func >
constexpr _Unary_negate< _Func > __gnu_cxx::__ops::not1 ( _Func &  __f)
constexpr

Definition at line 110 of file predefined_ops.h.