improve sorted_vector_{map,set} compatibility with std::{map,set}
Summary: This diff fixes a few rough edges in the folly::sorted_vector_set and folly::sorted_vector_map APIs. It makes the default constructor implicit; it adds emplace to sorted_vector_set; and it adds bulk insertion via std::initializer_list to sorted_vector_set and sorted_vector_map. This doesn't fix all incompatibilities. It also changes sorted_vector_set and sorted_vector_map insertion so that they do not copy a value_type const& argument if the key is already in the container. Reviewed By: yfeldblum Differential Revision: D13255279 fbshipit-source-id: dc5a16ea729e2a32a77f82ec0eacaeaf7854cd1a
Showing
Please register or sign in to comment