AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::LessPtrCompare< T > Struct Template Reference

Less comparator based on object address. More...

#include <lessPtrCompare.hpp>

+ Collaboration diagram for anch::LessPtrCompare< T >:

Public Member Functions

bool operator() (const T *const first, const T *const second) const
 

Detailed Description

template<typename T>
struct anch::LessPtrCompare< T >

Less comparator based on object address.

This class can be used to register objects in std::set or std::map.

Since
0.1
Author
Vincent Lachenal

Member Function Documentation

◆ operator()()

template<typename T>
bool anch::LessPtrCompare< T >::operator() ( const T *const first,
const T *const second ) const
inline

Address comparison operator.

Parameters
firstthe first object instance
secondthe second object instance
Returns
true if first address is less than second, false otherwise

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