Embedded Template Library 1.0
|
Functor to select pair::second. More...
#include <utility.h>
Public Types | |
typedef TPair::second_type | type |
type of member pair::second. | |
Public Member Functions | |
type & | operator() (TPair &p) const |
Function call. The return value is p.second . | |
const type & | operator() (const TPair &p) const |
Function call. The return value is p.second . | |
Functor to select pair::second.
select2nd is a functor object that takes a single argument, a pair, and returns the pair::second element.
Example
TPair | The function object's argument type. |
Function call. The return value is p.second
.
second
of the pair p
. Function call. The return value is p.second
.
second
of the pair p
.