bsl::get

Return a reference providing non-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.

Synopsis

Declared in <bslstl_pair.h>

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