mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-10 02:29:32 +00:00
STLExtras: Add less_ptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8246bef02a
commit
094da67bd7
@ -28,6 +28,13 @@ namespace llvm {
|
|||||||
// Extra additions to <functional>
|
// Extra additions to <functional>
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
template<class Ty>
|
template<class Ty>
|
||||||
struct greater_ptr : public std::binary_function<Ty, Ty, bool> {
|
struct greater_ptr : public std::binary_function<Ty, Ty, bool> {
|
||||||
bool operator()(const Ty* left, const Ty* right) const {
|
bool operator()(const Ty* left, const Ty* right) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user