42template <
class T,
class R >
43class pair :
public std::pair < T, R > {
48 using std::pair < T, R >::pair;
53 using std::pair < T, R >::operator =;
78template<
typename T1,
typename T2>
97template<
class T,
class R >
99 out <<
"(" <<
pair.first <<
", " <<
pair.second <<
")";
114template <
class First,
class Second >
115struct tuple_size <
ext::pair < First, Second > > :
public std::integral_constant < std::size_t, 2 > { };
127template < std::
size_t I,
class First,
class Second >
128struct tuple_element < I,
ext::pair < First, Second > > {
129 typedef typename std::tuple_element < I, std::pair < First, Second > >
::type type;
Class extending the pair class from the standard library. Original reason is to allow printing of the...
Definition: pair.hpp:43
pair(pair &&other)=default
pair & operator=(pair &&other)=default
pair(const pair &other)=default
Definition: sigHandler.cpp:20
constexpr auto make_pair(T1 &&x, T2 &&y)
Definition: pair.hpp:79
std::ostream & operator<<(ext::reference_wrapper< std::ostream > &os, std::ostream &(*const func)(std::ostream &))
Overloaded function allowing same operations on wrapped output stream as on the actual output stream,...
Definition: GlobalData.cpp:33
Definition: FordFulkerson.hpp:16
Definition: type_traits.hpp:170
std::tuple_element< I, std::pair< First, Second > >::type type
Definition: pair.hpp:129