- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Utils/Lang/PointerCompare.h

    00001
    00002 //
    00003 // Copyright (c) 2005           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00010
    00011 #ifndef MERS_UTILS_LANG_POINTERCOMPARE
    00012 #define MERS_UTILS_LANG_POINTERCOMPARE
    00013
    00015
    00016 namespace Mers {
    00017 namespace Utils {
    00018 namespace Lang {
    00019
    00021
    00027 template< class t_Class >
    00028 class PointerCompare
    00029 {
    00030 public:
    00031         bool operator()( const t_Class * c1, const t_Class * c2 ) const
    00032         {
    00033                 return (*c1) < (*c2);
    00034         }
    00035 };
    00036
    00038
    00039 } // Lang
    00040 } // Utils
    00041 } // Mers
    00042
    00044
    00045 #endif
    00046