pointers to objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13909
91177308-0d34-0410-b5e6-
96231b3b80d8
}
};
+template<class Ty>
+struct less_ptr : public std::binary_function<Ty, Ty, bool> {
+ bool operator()(const Ty* left, const Ty* right) const {
+ return *left < *right;
+ }
+};
// deleter - Very very very simple method that is used to invoke operator
// delete on something. It is used like this:
}
};
+template<class Ty>
+struct less_ptr : public std::binary_function<Ty, Ty, bool> {
+ bool operator()(const Ty* left, const Ty* right) const {
+ return *left < *right;
+ }
+};
// deleter - Very very very simple method that is used to invoke operator
// delete on something. It is used like this: