proj home

Files   Classes   Functions   Hierarchy  

mynot2object< F > Class Template Reference

Negate a binary operator. More...

#include <functionalobjectoperators.h>

Collaboration diagram for mynot2object< F >:

List of all members.

Public Member Functions

 mynot2object (F const &f_)
 Pass in the binary operator.
template<typename T >
boolc operator() (T const &p1, T const &p2)
 Binary operator being negated.

Public Attributes

f


Detailed Description

template<typename F>
class mynot2object< F >

Negate a binary operator.

Example
fwd is a binary operator. Sort in reverse. sort(v+i,v+i+width,mynot2(fwd))

Definition at line 24 of file functionalobjectoperators.h.


Constructor & Destructor Documentation

template<typename F >
mynot2object< F >::mynot2object ( F const &  f_  )  [inline]

Pass in the binary operator.

Definition at line 30 of file functionalobjectoperators.h.

00031     : f(f_) {}


Member Function Documentation

template<typename F >
template<typename T >
boolc mynot2object< F >::operator() ( T const &  p1,
T const &  p2 
) [inline]

Binary operator being negated.

Definition at line 35 of file functionalobjectoperators.h.

References mynot2object< F >::f.

00036     { return !f(p1,p2); }


Member Data Documentation

template<typename F >
F mynot2object< F >::f

Definition at line 27 of file functionalobjectoperators.h.

Referenced by mynot2object< F >::operator()().


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

Generated on Fri Mar 4 00:50:07 2011 for Chelton Evans Source by  doxygen 1.5.8