#ifndef OPENTISSUE_UTILITY_UTILITY_GREATER_PTR_H #define OPENTISSUE_UTILITY_UTILITY_GREATER_PTR_H // // OpenTissue, A toolbox for physical based simulation and animation. // Copyright (C) 2007 Department of Computer Science, University of Copenhagen // #include #include namespace OpenTissue { namespace utility { /** * Greater Than Test. * This is used for doing a greater than test on data * structures containing pointers to data and not instances. */ template struct greater_ptr : public std::binary_function { bool operator()(const T& x, const T& y) const { return (*x)>(*y); } }; } //End of namespace utility } //End of namespace OpenTissue // OPENTISSUE_UTILITY_UTILITY_GREATER_PTR_H #endif