Standard C++ Library Class Reference

Interface
template <class Predicate>
class unary_negate
: public unary_function<Predicate::argument_type, bool> {
typedef typename unary_function<typename
Predicate::argument_type,bool>::argument_type argument_type;
typedef typename unary_function<typename
Predicate::argument_type,bool>::result_type result_type;
public:
explicit unary_negate (const Predicate&);
bool operator() (const argument_type&) const;
};
template<class Predicate>
unary_negate <Predicate> not1 (const Predicate&);
Constructor
explicit unary_negate (const Predicate& pred);
Construct a unary_negate object from predicate pred.
Operator
bool operator() (const argument_type& x) const;
Return the result of pred(x)
See Also
not1, not2, unary_function, binary_negate