25#include <l4/cxx/type_traits>
37template<
typename First,
typename Second >
55 template<
typename A1,
typename A2>
71template<
typename F,
typename S >
84template<
typename Cmp,
typename Typ >
103 {
return _cmp(l.first,r.first); }
108template<
typename OS,
typename A,
typename B >
Comparison functor for Pair.
bool operator()(Typ const &l, Typ const &r) const
Do the comaprison based on the first value.
Pair_first_compare(Cmp const &cmp=Cmp())
Construction.
Second Second_type
Type of second value.
Pair(A1 &&first)
Create a pair, default constructing the second value.
Second second
Second value.
First First_type
Type of first value.
Pair()=default
Default construction.
Pair(A1 &&first, A2 &&second)
Create a pair from the two values.