mirror of
https://github.com/cmosher01/v6502cpp.git
synced 2026-04-22 03:16:25 +00:00
fixed inconsistent breaking; other refactoring
the sets of Segment* 's needed to be sorted consistently
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* 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 */
|
||||
Reference in New Issue
Block a user