remove unnecessary uber_comparer_type from flat_set

This commit is contained in:
2019-05-05 21:22:52 +07:00
parent 9695c1ee69
commit 82e67e7300

View File

@@ -22,15 +22,6 @@ namespace flat_hpp
, typename Allocator = std::allocator<Key>
, typename Container = std::vector<Key, Allocator> >
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_;
};
}