mirror of
https://github.com/cmosher01/v6502cpp.git
synced 2024-06-04 16:29:29 +00:00
40ba79a34d
the sets of Segment* 's needed to be sorted consistently
21 lines
294 B
C++
21 lines
294 B
C++
/*
|
|
* 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 {
|
|
|
|
bool operator()(T* pa, T* pb) {
|
|
return *pa < *pb;
|
|
}
|
|
|
|
};
|
|
|
|
#endif /* PTR_LESS_H */
|