mirror of
https://github.com/cmosher01/v6502cpp.git
synced 2025-04-18 18:37:14 +00:00
21 lines
274 B
C++
21 lines
274 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 */
|