proxygen
|
#include <sorted_vector_types.h>
Classes | |
struct | EBO |
Public Types | |
typedef T | value_type |
typedef T | key_type |
typedef Compare | key_compare |
typedef Compare | value_compare |
typedef Container::pointer | pointer |
typedef Container::reference | reference |
typedef Container::const_reference | const_reference |
typedef Container::iterator | iterator |
typedef Container::const_iterator | const_iterator |
typedef Container::difference_type | difference_type |
typedef Container::size_type | size_type |
typedef Container::reverse_iterator | reverse_iterator |
typedef Container::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
sorted_vector_set (const Compare &comp=Compare(), const Allocator &alloc=Allocator()) | |
template<class InputIterator > | |
sorted_vector_set (InputIterator first, InputIterator last, const Compare &comp=Compare(), const Allocator &alloc=Allocator()) | |
sorted_vector_set (std::initializer_list< value_type > list, const Compare &comp=Compare(), const Allocator &alloc=Allocator()) | |
sorted_vector_set (Container &&container, const Compare &comp=Compare()) | |
sorted_vector_set (presorted_t, Container &&container, const Compare &comp=Compare()) | |
sorted_vector_set & | operator= (std::initializer_list< value_type > ilist) |
key_compare | key_comp () const |
value_compare | value_comp () const |
iterator | begin () |
iterator | end () |
const_iterator | cbegin () const |
const_iterator | begin () const |
const_iterator | cend () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
void | clear () |
size_type | size () const |
size_type | max_size () const |
bool | empty () const |
void | reserve (size_type s) |
void | shrink_to_fit () |
size_type | capacity () const |
std::pair< iterator, bool > | insert (const value_type &value) |
std::pair< iterator, bool > | insert (value_type &&value) |
iterator | insert (iterator hint, const value_type &value) |
iterator | insert (iterator hint, value_type &&value) |
template<class InputIterator > | |
void | insert (InputIterator first, InputIterator last) |
size_type | erase (const key_type &key) |
iterator | erase (iterator it) |
iterator | erase (iterator first, iterator last) |
iterator | find (const key_type &key) |
const_iterator | find (const key_type &key) const |
template<typename K > | |
if_is_transparent< K, iterator > | find (const K &key) |
template<typename K > | |
if_is_transparent< K, const_iterator > | find (const K &key) const |
size_type | count (const key_type &key) const |
template<typename K > | |
if_is_transparent< K, size_type > | count (const K &key) const |
iterator | lower_bound (const key_type &key) |
const_iterator | lower_bound (const key_type &key) const |
template<typename K > | |
if_is_transparent< K, iterator > | lower_bound (const K &key) |
template<typename K > | |
if_is_transparent< K, const_iterator > | lower_bound (const K &key) const |
iterator | upper_bound (const key_type &key) |
const_iterator | upper_bound (const key_type &key) const |
template<typename K > | |
if_is_transparent< K, iterator > | upper_bound (const K &key) |
template<typename K > | |
if_is_transparent< K, const_iterator > | upper_bound (const K &key) const |
std::pair< iterator, iterator > | equal_range (const key_type &key) |
std::pair< const_iterator, const_iterator > | equal_range (const key_type &key) const |
template<typename K > | |
if_is_transparent< K, std::pair< iterator, iterator > > | equal_range (const K &key) |
template<typename K > | |
if_is_transparent< K, std::pair< const_iterator, const_iterator > > | equal_range (const K &key) const |
void | swap (sorted_vector_set &o) |
bool | operator== (const sorted_vector_set &other) const |
bool | operator!= (const sorted_vector_set &other) const |
bool | operator< (const sorted_vector_set &other) const |
bool | operator> (const sorted_vector_set &other) const |
bool | operator<= (const sorted_vector_set &other) const |
bool | operator>= (const sorted_vector_set &other) const |
const value_type * | data () const noexcept |
Private Types | |
template<typename K , typename V , typename C = Compare> | |
using | if_is_transparent = _t< detail::sorted_vector_enable_if_is_transparent< void, C, K, V >> |
template<typename Self > | |
using | self_iterator_t = _t< std::conditional< std::is_const< Self >::value, const_iterator, iterator >> |
Private Member Functions | |
detail::growth_policy_wrapper< GrowthPolicy > & | get_growth_policy () |
Private Member Functions inherited from folly::detail::growth_policy_wrapper< GrowthPolicy > | |
Iterator | increase_capacity (Container &c, Iterator desired_insertion) |
Static Private Member Functions | |
template<typename Self , typename K > | |
static self_iterator_t< Self > | find (Self &self, K const &key) |
Private Attributes | |
folly::sorted_vector_set::EBO | m_ |
A sorted_vector_set is a container similar to std::set<>, but implemented as a sorted array with std::vector<>.
class | T Data type to store |
class | Compare Comparison function that imposes a strict weak ordering over instances of T |
class | Allocator allocation policy |
class | GrowthPolicy policy object to control growth |
Definition at line 228 of file sorted_vector_types.h.
typedef Container::const_iterator folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::const_iterator |
Definition at line 252 of file sorted_vector_types.h.
typedef Container::const_reference folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::const_reference |
Definition at line 245 of file sorted_vector_types.h.
typedef Container::const_reverse_iterator folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::const_reverse_iterator |
Definition at line 256 of file sorted_vector_types.h.
typedef Container::difference_type folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::difference_type |
Definition at line 253 of file sorted_vector_types.h.
|
private |
Definition at line 235 of file sorted_vector_types.h.
typedef Container::iterator folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::iterator |
Definition at line 251 of file sorted_vector_types.h.
typedef Compare folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::key_compare |
Definition at line 240 of file sorted_vector_types.h.
typedef T folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::key_type |
Definition at line 239 of file sorted_vector_types.h.
typedef Container::pointer folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::pointer |
Definition at line 243 of file sorted_vector_types.h.
typedef Container::reference folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::reference |
Definition at line 244 of file sorted_vector_types.h.
typedef Container::reverse_iterator folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::reverse_iterator |
Definition at line 255 of file sorted_vector_types.h.
|
private |
Definition at line 564 of file sorted_vector_types.h.
typedef Container::size_type folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::size_type |
Definition at line 254 of file sorted_vector_types.h.
typedef Compare folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::value_compare |
Definition at line 241 of file sorted_vector_types.h.
typedef T folly::sorted_vector_set< T, Compare, Allocator, GrowthPolicy, Container >::value_type |
Definition at line 238 of file sorted_vector_types.h.
|
inlineexplicit |
Definition at line 258 of file sorted_vector_types.h.
|
inlineexplicit |
Definition at line 264 of file sorted_vector_types.h.
|
inline |
Definition at line 275 of file sorted_vector_types.h.
|
inlineexplicit |
Definition at line 291 of file sorted_vector_types.h.
|
inline |
Definition at line 308 of file sorted_vector_types.h.
|
inline |
Definition at line 330 of file sorted_vector_types.h.
Referenced by extractValues(), and TEST().
|
inline |
Definition at line 339 of file sorted_vector_types.h.
|
inline |
Definition at line 379 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 336 of file sorted_vector_types.h.
|
inline |
Definition at line 342 of file sorted_vector_types.h.
|
inline |
Definition at line 361 of file sorted_vector_types.h.
|
inline |
Definition at line 445 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 450 of file sorted_vector_types.h.
|
inlinenoexcept |
Definition at line 540 of file sorted_vector_types.h.
|
inline |
Definition at line 370 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 333 of file sorted_vector_types.h.
Referenced by extractValues(), and TEST().
|
inline |
Definition at line 345 of file sorted_vector_types.h.
|
inline |
Definition at line 490 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 494 of file sorted_vector_types.h.
|
inline |
Definition at line 500 of file sorted_vector_types.h.
|
inline |
Definition at line 506 of file sorted_vector_types.h.
|
inline |
Definition at line 410 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 419 of file sorted_vector_types.h.
|
inline |
Definition at line 423 of file sorted_vector_types.h.
|
inline |
Definition at line 427 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 431 of file sorted_vector_types.h.
|
inline |
Definition at line 436 of file sorted_vector_types.h.
|
inline |
Definition at line 441 of file sorted_vector_types.h.
|
inlinestaticprivate |
Definition at line 567 of file sorted_vector_types.h.
|
inlineprivate |
Definition at line 229 of file sorted_vector_types.h.
|
inline |
Definition at line 383 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 387 of file sorted_vector_types.h.
|
inline |
Definition at line 396 of file sorted_vector_types.h.
|
inline |
Definition at line 400 of file sorted_vector_types.h.
|
inline |
Definition at line 406 of file sorted_vector_types.h.
|
inline |
Definition at line 323 of file sorted_vector_types.h.
|
inline |
Definition at line 454 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 458 of file sorted_vector_types.h.
|
inline |
Definition at line 463 of file sorted_vector_types.h.
|
inline |
Definition at line 468 of file sorted_vector_types.h.
|
inline |
Definition at line 367 of file sorted_vector_types.h.
|
inline |
Definition at line 523 of file sorted_vector_types.h.
|
inline |
Definition at line 527 of file sorted_vector_types.h.
|
inline |
Definition at line 533 of file sorted_vector_types.h.
|
inline |
Definition at line 317 of file sorted_vector_types.h.
|
inline |
Definition at line 520 of file sorted_vector_types.h.
|
inline |
Definition at line 530 of file sorted_vector_types.h.
|
inline |
Definition at line 536 of file sorted_vector_types.h.
|
inline |
Definition at line 348 of file sorted_vector_types.h.
|
inline |
Definition at line 354 of file sorted_vector_types.h.
|
inline |
Definition at line 351 of file sorted_vector_types.h.
|
inline |
Definition at line 357 of file sorted_vector_types.h.
|
inline |
Definition at line 373 of file sorted_vector_types.h.
|
inline |
Definition at line 376 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 364 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 512 of file sorted_vector_types.h.
Referenced by folly::swap(), and TEST().
|
inline |
Definition at line 472 of file sorted_vector_types.h.
Referenced by TEST().
|
inline |
Definition at line 476 of file sorted_vector_types.h.
|
inline |
Definition at line 481 of file sorted_vector_types.h.
|
inline |
Definition at line 486 of file sorted_vector_types.h.
|
inline |
Definition at line 326 of file sorted_vector_types.h.
|
private |