From 82e67e730024488dfd09462cf6cf13ec6b703637 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Sun, 5 May 2019 21:22:52 +0700 Subject: [PATCH] remove unnecessary uber_comparer_type from flat_set --- flat_set.hpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/flat_set.hpp b/flat_set.hpp index dcc4d23..5feda61 100644 --- a/flat_set.hpp +++ b/flat_set.hpp @@ -22,15 +22,6 @@ namespace flat_hpp , typename Allocator = std::allocator , typename Container = std::vector > class flat_set final { - class uber_comparer_type : public Compare { - public: - uber_comparer_type() = default; - uber_comparer_type(const Compare& c) : Compare(c) {} - - bool operator()(const Key& l, const Key& r) const { - return Compare::operator()(l, r); - } - }; public: using key_type = Key; using value_type = Key; @@ -292,7 +283,7 @@ namespace flat_hpp } private: container_type data_; - uber_comparer_type compare_; + Compare compare_; }; }