
8 Dec
2009
8 Dec
'09
1:05 p.m.
Hello, All!
Is there a simple way to create a functor that returns one of its arguments
_1, _2, ...?
Does standard unary functor exist, which simply returns its argument
unchanged? I.e.:
template<typename T>
struct arg: public std::unary_function