|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-07 12:32:27
Eric Niebler:
> Can you write what the identity function object would look like in C++0x?
struct identity
{
template<class A> A operator()( A && a ) const
{
return std::forward<A>( a );
}
};
I guess.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk