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