2013-12-20 00:44:06 +00:00
|
|
|
/*
|
|
|
|
* File: ptr_less.h
|
|
|
|
* Author: Christopher
|
|
|
|
*
|
|
|
|
* Created on December 14, 2013, 5:44 PM
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PTR_LESS_H
|
|
|
|
#define PTR_LESS_H
|
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
struct ptr_less {
|
|
|
|
|
2022-11-01 05:40:32 +00:00
|
|
|
bool operator()(T* pa, T* pb) const {
|
2013-12-20 00:44:06 +00:00
|
|
|
return *pa < *pb;
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PTR_LESS_H */
|