getPairElement overloads

Synopses

Declared in <bslstl_pair.h>

Return a reference providing modifiable access to the second element of the specified p.

static
T2&
getPairElement(bsl::pair<T1, T2>& p) noexcept;

Return a reference providing non‐modifiable access to the second element of the specified p.

static
T2 const&
getPairElement(bsl::pair<T1, T2> const& p) noexcept;

Return a rvalue reference providing modifiable access to the second element of the specified p

static
T2&&
getPairElement(bsl::pair<T1, T2>&& p) noexcept;

Return a rvalue reference providing non‐modifiable access to the second element of the specified p

static
T2 const&&
getPairElement(bsl::pair<T1, T2> const&& p) noexcept;

Return Value

  • modifiable reference to the second element of p

  • non‐modifiable reference to the second element of p

  • modifiable rvalue reference to the second element of p

  • non‐modifiable rvalue reference to the second element of p

Parameters

Name

Description

p

pair whose second element is returned

Created with MrDocs