Instigate Open Source Documentation

instigate::stl::unot1< UP > Struct Template Reference

Helper class to negate the result of unary predicate. More...

#include <functional.hpp>

List of all members.

Public Types

typedef UPI::result_type result_type
 result type of the binary predicate
typedef UPI::argument_type argument_type
 first argument type of the binary predicate

Public Member Functions

result_type operator() (argument_type a)
 operator ()
 unot1 (UP p) throw ()
 Constructor.


Detailed Description

template<typename UP>
struct instigate::stl::unot1< UP >

Helper class to negate the result of unary predicate.

It is implemented so that it deals with UP using interface of the instigate::stl instigate::stl::unary_predicate. As a consequence, it is more generic than the standard STL-style not1, which would impose syntactical requirements on UP.

Is Model of -instigate::stl::unary_predicate
Type requirements:

Constructor & Destructor Documentation

template<typename UP>
instigate::stl::unot1< UP >::unot1 ( UP  p  )  throw () [inline]

Constructor.

Parameters:
p - predicate


Member Function Documentation

template<typename UP>
result_type instigate::stl::unot1< UP >::operator() ( argument_type  a  )  [inline]

operator ()

Negates the result of unary predicate call.

Parameters:
a - the argument of the unary predicate

References instigate::stl::invoke().


The documentation for this struct was generated from the following file:


© Instigate CJSC, Open Source