get overloads
Declared in <bslstl_pair.h>
Return a modifiable reference to the element of p having type TYPE.
template<
class TYPE,
class T1,
class T2>
TYPE&
get(bsl::pair<T1, T2>& p) noexcept;
» more...
Return a modifiable reference to the INDEXth element of p.
template<
std::size_t INDEX,
class T1,
class T2>
std::tuple_element<INDEX, bsl::pair<T1, T2>>::type&
get(bsl::pair<T1, T2>& p) noexcept;
» more...
Return a reference to the alternative of type t_TYPE in obj.
template<
class t_TYPE,
class t_HEAD,
class... t_TAIL>
t_TYPE&
get(variant<t_HEAD, t_TAIL...>& obj);
» more...
Return a reference to the alternative at index t_INDEX in obj.
template<
std::size_t t_INDEX,
class t_HEAD,
class... t_TAIL>
variant_alternative<t_INDEX, variant<t_HEAD, t_TAIL...>>::type&
get(variant<t_HEAD, t_TAIL...>& obj);
» more...
Return a non-modifiable reference to the element of p having type TYPE.
template<
class TYPE,
class T1,
class T2>
TYPE const&
get(bsl::pair<T1, T2> const& p) noexcept;
» more...
Return a non-modifiable reference to the INDEXth element of p.
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;
» more...
See the first get overload above.
template<
class t_TYPE,
class t_HEAD,
class... t_TAIL>
t_TYPE const&
get(variant<t_HEAD, t_TAIL...> const& obj);
» more...
See the first get overload above.
template<
std::size_t t_INDEX,
class t_HEAD,
class... t_TAIL>
variant_alternative<t_INDEX, variant<t_HEAD, t_TAIL...>>::type const&
get(variant<t_HEAD, t_TAIL...> const& obj);
» more...
Return a modifiable rvalue reference to the element of p of type TYPE.
template<
class TYPE,
class T1,
class T2>
TYPE&&
get(bsl::pair<T1, T2>&& p) noexcept;
» more...
Return a modifiable rvalue reference to the INDEXth element of p.
template<
std::size_t INDEX,
class T1,
class T2>
std::tuple_element<INDEX, bsl::pair<T1, T2>>::type&&
get(bsl::pair<T1, T2>&& p) noexcept;
» more...
See the first get overload above.
template<
class t_TYPE,
class t_HEAD,
class... t_TAIL>
t_TYPE&&
get(variant<t_HEAD, t_TAIL...>&& obj);
» more...
See the first get overload above.
template<
std::size_t t_INDEX,
class t_HEAD,
class... t_TAIL>
variant_alternative<t_INDEX, variant<t_HEAD, t_TAIL...>>::type&&
get(variant<t_HEAD, t_TAIL...>&& obj);
» more...
Return a non-modifiable rvalue reference to the element of p of TYPE.
template<
class TYPE,
class T1,
class T2>
TYPE const&&
get(bsl::pair<T1, T2> const&& p) noexcept;
» more...
See the first get overload above.
template<
class t_TYPE,
class t_HEAD,
class... t_TAIL>
t_TYPE const&&
get(variant<t_HEAD, t_TAIL...> const&& obj);
» more...
See the first get overload above.
template<
std::size_t t_INDEX,
class t_HEAD,
class... t_TAIL>
variant_alternative<t_INDEX, variant<t_HEAD, t_TAIL...>>::type const&&
get(variant<t_HEAD, t_TAIL...> const&& obj);
» more...
p of type TYPEINDEXth element of pt_TYPEt_INDEXp of type TYPEINDEXth element of pt_TYPEt_INDEXp of type TYPEINDEXth element of pt_TYPEt_INDEXp of type TYPEt_TYPEt_INDEX| Name | Description |
|---|---|
| p | pair whose element is returned |
| obj | variant whose alternative is accessed |