4 #ifndef UTILMM_FUNCTIONAL_UTILS_HEADER
5 # define UTILMM_FUNCTIONAL_UTILS_HEADER
24 struct identity :
public std::unary_function<Ty, Ty> {
51 :
public std::unary_function<Pair, typename Pair::first_type> {
57 typename Pair::first_type
const &
operator()(Pair
const &p)
const {
75 :
public std::unary_function<Pair, typename Pair::second_type> {
81 typename Pair::second_type
const &
operator()(Pair
const &p)
const {
88 #endif // UTILMM_FUNCTIONAL_UTILS_HEADER
Identity functor.
Definition: utils.hh:24
Second pair attribute access.
Definition: utils.hh:74
First pair attribute access.
Definition: utils.hh:50
Definition of utilmm::arg_traits class.
arg_type operator()(arg_type x) const
Identity call.
Definition: utils.hh:33
Pair::second_type const & operator()(Pair const &p) const
call operator
Definition: utils.hh:81
Pair::first_type const & operator()(Pair const &p) const
call operator
Definition: utils.hh:57
computed_type type
argument type
Definition: arg_traits.hh:38