Identity functor. More...
#include <utils.hh>
Public Member Functions | |
arg_type | operator() (arg_type x) const |
Identity call. | |
Private Types | |
typedef arg_traits< Ty >::type | arg_type |
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
Ty | the type of arguments |
typedef arg_traits<Ty>::type utilmm::identity< Ty >::arg_type [private] |
arg_type utilmm::identity< Ty >::operator() | ( | arg_type | x | ) | const [inline] |