Util--  1.1
Public Member Functions | List of all members
utilmm::identity< Ty > Struct Template Reference

Identity functor. More...

#include <utilmm/functional/utils.hh>

Inheritance diagram for utilmm::identity< Ty >:
Inheritance graph
[legend]
Collaboration diagram for utilmm::identity< Ty >:
Collaboration graph
[legend]

Public Member Functions

arg_type operator() (arg_type x) const
 Identity call. More...
 

Detailed Description

template<typename Ty>
struct utilmm::identity< Ty >

Identity functor.

This functor correspond to the identity function. It is a function that will return exactly the same value as passed as argument. It also uses arg_traits to improve performances avoiding the copy of complex objects

Parameters
Tythe type of arguments
Author
Frédéric Py fpy@l.nosp@m.aas..nosp@m.fr

Member Function Documentation

template<typename Ty >
arg_type utilmm::identity< Ty >::operator() ( arg_type  x) const
inline

Identity call.

Parameters
xThe argument
Returns
x without modification

The documentation for this struct was generated from the following file:

Generated on Mon Oct 8 2018 08:38:45 for Util-- by doxygen 1.8.11
SourceForge.net Project Page