Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A negater is a type of functor that allows to express the opposite of a predicate [1].
Negaters are useful when using algorithms.
The example below demonstrates how to a find a not-male (that is, a female) using the std::not1 negater.
#include <algorithm> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.