have a look at the standard header <utility>. it defines std::pair and std::make_pair.
template <typename First, typename Second>
struct Pair
{
First f;
Second s;
Pair( const First& ff, const Second& ss ) : f(ff), s(ss) {}
// etc
};
template <typename First, typename Second> inline
Pair<First,Second> makePair( const First& f, const Second& s )
{ return Pair<First,Second>( f, s ) ; }
Reputation Points: 1159
Solved Threads: 285
Posting Virtuoso
Offline 1,606 posts
since Dec 2006