utilmm::identity< Ty > Struct Template Reference

Identity functor. More...

#include <utilmm/functional/utils.hh>

List of all members.

Public Member Functions

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


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:
Ty the type of arguments
Author:
Frédéric Py <fpy@laas.fr>

Member Function Documentation

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

Identity call.

Parameters:
x The argument
Returns:
x without modification


The documentation for this struct was generated from the following file:
Generated on Tue Feb 19 10:51:01 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page