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

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

#include "stl_compares.h"

Inheritance diagram for indirect_compare_to< Key >:
stl_hash_compare< Key, indirect_compare_to< Key > >

Public Member Functions

bool is_equal (const Key &a, const Key &b) const
 Returns true if a is equivalent to b, false otherwise.
 
bool operator() (const Key &a, const Key &b) const
 Returns true if a sorts before b, false otherwise.
 

Detailed Description

template<class Key>
class indirect_compare_to< Key >

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

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

Definition at line 96 of file stl_compares.h.

Member Function Documentation

◆ is_equal()

template<class Key >
bool indirect_compare_to< Key >::is_equal ( const Key & a,
const Key & b ) const
inline

Returns true if a is equivalent to b, false otherwise.

Definition at line 73 of file stl_compares.I.

◆ operator()()

template<class Key >
bool indirect_compare_to< Key >::operator() ( const Key & a,
const Key & b ) const
inline

Returns true if a sorts before b, false otherwise.

Definition at line 64 of file stl_compares.I.


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