bsl::select2nd

This struct is a functor that returns the second member of its PAIR argument.

Synopsis

Declared in <bslstp_exfunctional.h>

template<class PAIR>
struct select2nd;

Type Aliases

NameDescription
argument_type This typedef is an alias to the (template parameter) PAIR.
result_type This typedef is an alias to PAIR::second_type.

Member Functions

NameDescription
operator() Return a reference to the second member of the specified x.
operator BloombergLP::bslmf::NestedTraitDeclaration<select2nd, is_trivially_copyable> Declare that select2nd is trivially copyable.