Panda3D
Public Member Functions | Public Attributes | List of all members
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"

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. More...
 

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 25 of file firstOfPairCompare.h.

Member Function Documentation

◆ operator()()

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 27 of file firstOfPairCompare.I.


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