|
| sorted_vector_map (const Compare &comp=Compare(), const Allocator &alloc=Allocator()) |
|
template<class InputIterator > |
| sorted_vector_map (InputIterator first, InputIterator last, const Compare &comp=Compare(), const Allocator &alloc=Allocator()) |
|
| sorted_vector_map (std::initializer_list< value_type > list, const Compare &comp=Compare(), const Allocator &alloc=Allocator()) |
|
| sorted_vector_map (Container &&container, const Compare &comp=Compare()) |
|
| sorted_vector_map (presorted_t, Container &&container, const Compare &comp=Compare()) |
|
sorted_vector_map & | 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 |
|
mapped_type & | at (const key_type &key) |
|
const mapped_type & | at (const key_type &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_map &o) |
|
mapped_type & | operator[] (const key_type &key) |
|
bool | operator== (const sorted_vector_map &other) const |
|
bool | operator!= (const sorted_vector_map &other) const |
|
bool | operator< (const sorted_vector_map &other) const |
|
bool | operator> (const sorted_vector_map &other) const |
|
bool | operator<= (const sorted_vector_map &other) const |
|
bool | operator>= (const sorted_vector_map &other) const |
|
const value_type * | data () const noexcept |
|
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
class folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >
A sorted_vector_map is similar to a sorted_vector_set but stores <key,value> pairs instead of single elements.
- Parameters
-
class | Key Key type |
class | Value Value type |
class | Compare Function that can compare key types and impose a strict weak ordering over them. |
class | Allocator allocation policy |
class | GrowthPolicy policy object to control growth |
- Author
- Aditya Agarwal adity.nosp@m.a@fb.nosp@m..com
-
Akhil Wable akhil.nosp@m.@fb..nosp@m.com
-
Jordan DeLong delon.nosp@m.g.j@.nosp@m.fb.co.nosp@m.m
Definition at line 609 of file sorted_vector_types.h.
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<typename K , typename V , typename C = Compare>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class InputIterator >
folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::sorted_vector_map |
( |
InputIterator |
first, |
|
|
InputIterator |
last, |
|
|
const Compare & |
comp = Compare() , |
|
|
const Allocator & |
alloc = Allocator() |
|
) |
| |
|
inlineexplicit |
Definition at line 650 of file sorted_vector_types.h.
655 :
m_(value_compare(comp), alloc) {
std::pair< iterator, bool > insert(const value_type &value)
folly::sorted_vector_map::EBO m_
constexpr detail::First first
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<typename Self , typename K >
Definition at line 992 of file sorted_vector_types.h.
iterator lower_bound(const key_type &key)
iterator upper_bound(const key_type &key)
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<typename Self , typename K >
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class InputIterator >
void folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::insert |
( |
InputIterator |
first, |
|
|
InputIterator |
last |
|
) |
| |
|
inline |
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<typename Self , typename K >
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
bool folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator!= |
( |
const sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container > & |
other | ) |
const |
|
inline |
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
bool folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator< |
( |
const sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container > & |
other | ) |
const |
|
inline |
Definition at line 935 of file sorted_vector_types.h.
References folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::EBO::cont_, and folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::m_.
936 return m_.
cont_ < other.m_.cont_;
folly::sorted_vector_map::EBO m_
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
bool folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator<= |
( |
const sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container > & |
other | ) |
const |
|
inline |
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
bool folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator== |
( |
const sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container > & |
other | ) |
const |
|
inline |
Definition at line 928 of file sorted_vector_types.h.
References folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::EBO::cont_, and folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::m_.
929 return m_.
cont_ == other.m_.cont_;
folly::sorted_vector_map::EBO m_
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
bool folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator> |
( |
const sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container > & |
other | ) |
const |
|
inline |
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
bool folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator>= |
( |
const sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container > & |
other | ) |
const |
|
inline |
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
void folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::swap |
( |
sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container > & |
o | ) |
|
|
inline |
Definition at line 912 of file sorted_vector_types.h.
References a, b, folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::EBO::cont_, folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::m_, and folly::swap().
Referenced by folly::swap(), and TEST().
void swap(sorted_vector_map< K, V, C, A, G > &a, sorted_vector_map< K, V, C, A, G > &b)
void swap(sorted_vector_map &o)
folly::sorted_vector_map::EBO m_
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
template<typename Self , typename K >
template<class Key, class Value, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<Key, Value>>, class GrowthPolicy = void, class Container = std::vector<std::pair<Key, Value>, Allocator>>
Referenced by folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator<(), folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::operator==(), and folly::sorted_vector_map< Key, Value, Compare, Allocator, GrowthPolicy, Container >::swap().