/* * Acess2 C++ Library * - By John Hodge (thePowersGang) * * string (header) * - C++'s String type */ #ifndef _LIBCXX_UTILITY_ #define _LIBCXX_UTILITY_ namespace std { template class pair { public: typedef T1 first_type; typedef T2 second_type; first_type first; second_type second; pair() { } template pair(const pair& pr): first (pr.first), second(pr.second) { } pair(const first_type& a, const second_type& b): first (a), second(b) { } // operator = is implicit }; template bool operator== (const pair& lhs, const pair& rhs) { return lhs.first == rhs.first && lhs.second == rhs.second; } template bool operator!= (const pair& lhs, const pair& rhs) { return !(lhs == rhs); } }; // namespace std #endif // vim: ft=cpp