Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CompareTo< ObjectType > Class Template Reference

An STL function object class, this is intended to be used on any ordered collection of classes that contain a compare_to() method. More...

#include "compareTo.h"

Public Member Functions

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

Detailed Description

template<class ObjectType>
class CompareTo< ObjectType >

An STL function object class, this is intended to be used on any ordered collection of classes that contain a compare_to() method.

It defines the order of the pointers via compare_to().

Definition at line 25 of file compareTo.h.

Member Function Documentation

◆ operator()()

template<class ObjectType >
bool CompareTo< ObjectType >::operator() ( const ObjectType & a,
const ObjectType & b ) const
inline

Returns true if a sorts before b, false otherwise.

Definition at line 18 of file compareTo.I.


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