Instigate Open Source Documentation

instigate::stl::bnot2< BP > Struct Template Reference

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

#include <functional.hpp>

List of all members.

Public Types

typedef BPI::result_type result_type
 result type of the binary predicate
typedef BPI::first_argument_type first_argument_type
 first argument type of the binary predicate
typedef BPI::second_argument_type second_argument_type
 second argument type of the binary predicate

Public Member Functions

result_type operator() (first_argument_type f, second_argument_type s)
 operator ()
 bnot2 (BP p) throw ()
 Constructor.


Detailed Description

template<typename BP>
struct instigate::stl::bnot2< BP >

Helper class to negate the result of binary predicate.

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

Is Model of -instigate::stl::binary_predicate.
Type requirements:

Constructor & Destructor Documentation

template<typename BP>
instigate::stl::bnot2< BP >::bnot2 ( BP  p  )  throw () [inline]

Constructor.

Parameters:
p - predicate


Member Function Documentation

template<typename BP>
result_type instigate::stl::bnot2< BP >::operator() ( first_argument_type  f,
second_argument_type  s 
) [inline]

operator ()

Negate the result of binary predicate call.

Parameters:
f - the first argument for binary predicate
s - the second argument for binary predicate

References instigate::stl::invoke().


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


© Instigate CJSC, Open Source