aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/microbdb/sorterdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/microbdb/sorterdef.h')
-rw-r--r--library/cpp/microbdb/sorterdef.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/library/cpp/microbdb/sorterdef.h b/library/cpp/microbdb/sorterdef.h
deleted file mode 100644
index 8834b5fff8..0000000000
--- a/library/cpp/microbdb/sorterdef.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#pragma once
-
-#define MAKESORTERTMPL(TRecord, MemberFunc) \
- template <typename T> \
- struct MemberFunc; \
- template <> \
- struct MemberFunc<TRecord> { \
- bool operator()(const TRecord* l, const TRecord* r) { \
- return TRecord ::MemberFunc(l, r) < 0; \
- } \
- int operator()(const TRecord* l, const TRecord* r, int) { \
- return TRecord ::MemberFunc(l, r); \
- } \
- }
-
-template <typename T>
-static inline int compare(const T& a, const T& b) {
- return (a < b) ? -1 : (a > b);
-}