mn_sorted_vector.hpp
Go to the documentation of this file.
53 class TCompare = mn::less<TKey>, class TStorage = basic_vector_storage< basic_pair<TKey, TValue>, TAllocator> >
54 class basic_sorted_vector : private basic_vector<basic_pair<TKey, TValue>, TAllocator, TStorage > {
172 using sorted_vector = basic_sorted_vector<TKey,TValue, mn::memory::default_allocator_t, TCompare>;
Definition: mn_sorted_vector.hpp:54
bool invariant() const
Definition: mn_sorted_vector.hpp:152
iterator upper_bound(const key_type &k)
Definition: mn_sorted_vector.hpp:145
basic_sorted_vector & operator=(const basic_sorted_vector &)=delete
pair_type insert(const value_type &val)
Definition: mn_sorted_vector.hpp:95
basic_sorted_vector(const allocator_type &allocator=allocator_type())
Definition: mn_sorted_vector.hpp:72
size_type erase(const key_type &k)
Definition: mn_sorted_vector.hpp:132
iterator erase(iterator it)
Definition: mn_sorted_vector.hpp:128
iterator lower_bound(const key_type &k)
Definition: mn_sorted_vector.hpp:139
const_iterator upper_bound(const key_type &k) const
Definition: mn_sorted_vector.hpp:148
typename base_type::size_type size_type
Definition: mn_sorted_vector.hpp:59
basic_sorted_vector(const basic_sorted_vector &)=delete
iterator find(const key_type &k)
Definition: mn_sorted_vector.hpp:113
typename base_type::value_type value_type
Definition: mn_sorted_vector.hpp:60
const_iterator find(const key_type &k) const
Definition: mn_sorted_vector.hpp:121
basic_sorted_vector(InputIterator first, InputIterator last, const allocator_type &allocator=allocator_type())
Definition: mn_sorted_vector.hpp:76
basic_pair< iterator, bool > pair_type
Definition: mn_sorted_vector.hpp:70
pair_type insert(const key_type &k, const mapped_type &v)
Definition: mn_sorted_vector.hpp:109
typename base_type::const_iterator const_iterator
Definition: mn_sorted_vector.hpp:66
compare_type m_compare
Definition: mn_sorted_vector.hpp:167
const_iterator lower_bound(const key_type &k) const
Definition: mn_sorted_vector.hpp:142
typename base_type::pointer pointer
Definition: mn_sorted_vector.hpp:61
typename base_type::reference reference
Definition: mn_sorted_vector.hpp:62
typename base_type::iterator iterator
Definition: mn_sorted_vector.hpp:65
typename base_type::allocator_type allocator_type
Definition: mn_sorted_vector.hpp:67
TValue mapped_type
Definition: mn_sorted_vector.hpp:58
Definition: mn_vector.hpp:117
const pointer const_iterator
Definition: mn_vector.hpp:128
const allocator_type & get_allocator() const
Definition: mn_vector.hpp:377
void set_allocator(const allocator_type &allocator)
Definition: mn_vector.hpp:381
void insert(size_type index, size_type n, const reference val)
Definition: mn_vector.hpp:228
Basic vector container This file is part of the Mini Thread Library (https://github....
Definition: mn_allocator_typetraits.hpp:25
constexpr TIter upper_bound(TIter first, TIter last, const TPred &value)
Definition: mn_algorithm.hpp:191
constexpr TIter lower_bound(TIter first, TIter last, const TPred &value)
Definition: mn_algorithm.hpp:160
Definition: mn_pair.hpp:28
Internal helper for sorting.
Definition: mn_sorted_vector.hpp:39
bool operator()(const TPair &lhs, const typename TPair::first_type &rhs) const
Definition: mn_sorted_vector.hpp:43
bool operator()(const TPair &lhs, const TPair &rhs) const
Definition: mn_sorted_vector.hpp:40
bool operator()(const typename TPair::first_type &lhs, const TPair &rhs) const
Definition: mn_sorted_vector.hpp:46
Definition: mn_utils.hpp:175