constexpr pair() = default; constexpr pair(const pair<T>&) = default; constexpr pair(const std::pair<T,T>& o); constexpr pair(const T& a); constexpr pair(const T& a, const T& b); constexpr pair(const T v[2]);
These are the constructors of the pair<T> class. All constructors with the constexpr declaration specifier are implemented in inline.
Default constructor, leaves all values uninitialized.
Default copy constructor.
Assignment constructor, assigns main value and remainder value, respectively.
Assignment constructor, initializes the pair as a singleton of the given value.
Assignment constructor, initializes the main and remainder to the first and second value of the std::pair,
respectively.