cpp/utility/pair/pair

Constructs a new pair.

@1@ Default constructor. Value-initializes both elements of the pair, and.

@2@ Initializes with  and  with.

@3@ Initializes with  and  with. @@ This constructor participates in overload resolution if and only if  and  are both. @@ This constructor is if and only if  is  or  is.

@4@ Initializes with  and  with. @@ This constructor participates in overload resolution if and only if  and  are both. @@ This constructor is if and only if  is  or  is. @@ This constructor is defined as deleted if the initialization of or  would bind a reference to temporary object.

@5@ Initializes with  and  with.

@6@ Initializes with  and  with. @@ This constructor participates in overload resolution if and only if  and  are both. @@ This constructor is if and only if  is  or  is.

@7@ Initializes with  and  with. @@ This constructor participates in overload resolution if and only if  and  are both. @@ This constructor is if and only if  is  or  is. @@ This constructor is defined as deleted if the initialization of or  would bind a reference to temporary object.

@8@ Given as  and  as, denote their types as  and  respectively. Initializes with  and  with. @@ This constructor participates in overload resolution if and only if @@ This constructor is if and only if  is  or  is. @@ This constructor is defined as deleted if the initialization of or  would bind a reference to temporary object.
 * is not a specialization of std,
 * is, and
 * is.

@9@ Forwards the elements of to the constructor of  and forwards the elements of  to the constructor of. This is the only non-default constructor that can be used to create a pair of non-copyable non-movable types. The program is ill-formed if or  is a reference and bound to a temporary object.

@10@ Copy constructor is.

@11@ Move constructor is defaulted, and is if moving of both elements satisfies the requirements on constexpr functions.

Exceptions
Does not throw exceptions unless one of the specified operations (e.g. constructor of an element) throws.