Panda3D
Public Member Functions | Public Attributes
FirstOfPairCompare< ObjectType, Compare > Class Template Reference

An STL function object class, this is intended to be used on any ordered collection of pairs of objects. More...

#include "firstOfPairCompare.h"

List of all members.

Public Member Functions

 FirstOfPairCompare (Compare compare=Compare())
bool operator() (const ObjectType &a, const ObjectType &b) const
 Returns true if a sorts before b, false otherwise.

Public Attributes

Compare _compare

Detailed Description

template<class ObjectType, class Compare>
class FirstOfPairCompare< ObjectType, Compare >

An STL function object class, this is intended to be used on any ordered collection of pairs of objects.

It invokes the indicated comparison function object on the first object of its pair.

Definition at line 28 of file firstOfPairCompare.h.


Member Function Documentation

template<class ObjectType , class Compare >
bool FirstOfPairCompare< ObjectType, Compare >::operator() ( const ObjectType &  a,
const ObjectType &  b 
) const [inline]

Returns true if a sorts before b, false otherwise.

Definition at line 33 of file firstOfPairCompare.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations