Changeset 646 for trunk


Ignore:
Timestamp:
Sep 13, 2006, 7:04:22 AM (15 years ago)
Author:
Peter
Message:

removing pointer_comare because it is not a pointer_compare but rather a compare_pairvalue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/utility/stl_utility.h

    r570 r646  
    7878
    7979  ///
    80   ///
    81   template <class T1,class T2>
    82   struct pointer_compare
    83   {
    84     ///
    85     /// @return true if x.second<y.second or (x.second==y.second and
    86     /// x.first<y.first)
    87     ///
    88     inline bool operator()(const std::pair<T1,T2>& x,
    89                            const std::pair<T1,T2>& y) {
    90       return ((x.second<y.second) ||
    91               (!(y.second<x.second) && (x.first<y.first)));
    92     }
    93   };
    94 
    95   ///
    9680  /// Function reading from istream to vector of doubles. Function
    9781  /// reads the line until next '\\n'. The line is splitted with
Note: See TracChangeset for help on using the changeset viewer.