Commit 9a9d6efb authored by Eric Niebler's avatar Eric Niebler Committed by Facebook Github Bot

Add allocator_type typedefs to the folly sorted vector types

Summary: All standard containers have an allocator_type typedef; so should sorted_vector_map and sorted_vector_set

Reviewed By: yfeldblum

Differential Revision: D13648217

fbshipit-source-id: ccf0b74af88f77b2b28620317cba8a868e9f9b0f
parent 02447777
......@@ -239,6 +239,7 @@ class sorted_vector_set : detail::growth_policy_wrapper<GrowthPolicy> {
typedef T key_type;
typedef Compare key_compare;
typedef Compare value_compare;
typedef Allocator allocator_type;
typedef typename Container::pointer pointer;
typedef typename Container::reference reference;
......@@ -647,6 +648,7 @@ class sorted_vector_map : detail::growth_policy_wrapper<GrowthPolicy> {
typedef Value mapped_type;
typedef typename Container::value_type value_type;
typedef Compare key_compare;
typedef Allocator allocator_type;
struct value_compare : private Compare {
bool operator()(const value_type& a, const value_type& b) const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment