Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // TEMPLATE CLASS identity
- template<class _Ty>
- struct identity
- { // map _Ty to type unchanged
- typedef _Ty type;
- const _Ty& operator()(const _Ty& _Left) const
- { // apply identity operator to operand
- return (_Left);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement