Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::unary_function is an empty class that serves as the base class of a unary functor. A unary functor defines operator(), where operator() takes one argument. The advantage of using std::unary_function is its many typedefs, so that the derived functors fit in more algorithms.
#include <algorithm> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.