Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. // TEMPLATE CLASS identity
  2. template<class _Ty>
  3. struct identity
  4. { // map _Ty to type unchanged
  5. typedef _Ty type;
  6.  
  7. const _Ty& operator()(const _Ty& _Left) const
  8. { // apply identity operator to operand
  9. return (_Left);
  10. }
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement