Return a modifiable reference to the element of p having type TYPE.
Declared in <bslstl_pair.h>
template<
class TYPE,
class T1,
class T2>
TYPE&
get(bsl::pair<T1, T2>& p) noexcept;
Return a 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.
modifiable reference to the element of p of type TYPE
| Name | Description |
|---|---|
| p | pair whose element is returned |