bsl::get

Return a modifiable rvalue reference to the element of p of type TYPE.

Synopsis

Declared in <bslstl_pair.h>

template<
    class TYPE,
    class T1,
    class T2>
TYPE&&
get(bsl::pair<T1, T2>&& p) noexcept;

Description

Return a rvalue reference providing modifiable access to the element of the specified p, having the (template parameter) TYPE. This function will not compile unless the types T1 and T2 are different and the TYPE is the same as either T1 or T2.

Return Value

modifiable rvalue reference to the element of p of type TYPE

Parameters

NameDescription
ppair whose element is returned