35 template<
typename First,
typename Second >
53 template<
typename A1,
typename A2>
54 Pair(A1 &&first, A2 &&second)
55 : first(first), second(second) {}
61 template<
typename F,
typename S >
74 template<
typename Cmp,
typename Typ >
92 bool operator () (Typ
const &l, Typ
const &r)
const 93 {
return _cmp(l.first,r.first); }
98 template<
typename OS,
typename A,
typename B >
100 OS &operator << (OS &os, cxx::Pair<A,B>
const &p)
102 os << p.first <<
';' << p.second;
First First_type
Type of first value.
Second second
Second value.
Pair()
Default construction.
Pair(A1 &&first, A2 &&second)
Create a pair from the two values.
Second Second_type
Type of second value.
Comparison functor for Pair.
Pair_first_compare(Cmp const &cmp=Cmp())
Construction.