bsl::get

Return a reference providing non-modifiable access to the element of the specified p, having the ordinal number specified by the (template parameter) INDEX. This function will not compile unless the INDEX is either 0 or 1.

Synopsis

Declared in <bslstl_pair.h>

template<
    std::size_t INDEX,
    class T1,
    class T2>
std::tuple_element<INDEX, bsl::pair<T1, T2>>::type const&
get(bsl::pair<T1, T2> const& p) noexcept;