Panda3D
 All Classes Functions Variables Enumerations
firstOfPairLess.h
00001 // Filename: firstOfPairLess.h
00002 // Created by:  drose (27Jun01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef FIRSTOFPAIRLESS_H
00016 #define FIRSTOFPAIRLESS_H
00017 
00018 #include "pandabase.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : FirstOfPairLess
00022 // Description : An STL function object class, this is intended to be
00023 //               used on any ordered collection of pairs of objects.
00024 //               It uses < to compare the first elements of the pair.
00025 ////////////////////////////////////////////////////////////////////
00026 template<class ObjectType>
00027 class FirstOfPairLess {
00028 public:
00029   INLINE bool operator () (const ObjectType &a, const ObjectType &b) const;
00030 };
00031 
00032 #include "firstOfPairLess.I"
00033 
00034 #endif
00035 
 All Classes Functions Variables Enumerations