Go to the documentation of this file.00001 #ifndef OPENTISSUE_UTILITY_UTILITY_LESS_PTR_H
00002 #define OPENTISSUE_UTILITY_UTILITY_LESS_PTR_H
00003
00004
00005
00006
00007 #include <OpenTissue/configuration.h>
00008
00009 #include <functional>
00010
00011 namespace OpenTissue
00012 {
00013 namespace utility
00014 {
00015
00021 template<class T>
00022 struct less_ptr
00023 : public std::binary_function<T, T, bool>
00024 {
00025 bool operator()(const T& x, const T& y) const { return (*x)<(*y); }
00026 };
00027
00028 }
00029
00030 }
00031
00032
00033 #endif