Project2nd is a function object that takes two arguments and
returns its second argument; the first 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
project2nd's first argument type.
Arg2
project2nd's second argument type, and its result type.