llvm.org GIT mirror llvm / 094da67
STLExtras: Add less_ptr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78521 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 11 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2626 //===----------------------------------------------------------------------===//
2727 // Extra additions to
2828 //===----------------------------------------------------------------------===//
29
30 template
31 struct less_ptr : public std::binary_function {
32 bool operator()(const Ty* left, const Ty* right) const {
33 return *left < *right;
34 }
35 };
2936
3037 template
3138 struct greater_ptr : public std::binary_function {