Project1st is a function object that takes two arguments and
returns its first argument; the second argument is unused.
It is essentially a generalization of
identity to the case of a Binary Function.
Defined in the standard header functional, and in the nonstandard
backward-compatibility header function.h.
This function object is an SGI extension; it is not part of the C++
standard.
Template parameters
Parameter
Description
Default
Arg1
project1st's first argument type, and its result type.