alternative Standard Libary  0.29.8
std::fixed_sorted_vector< TKey, TValue, TCapacity, TGrowOnOverflow, TCompare, TAllocator > Template-Klassenreferenz

#include <fixed_sorted_vector.hpp>

+ Klassendiagramm für std::fixed_sorted_vector< TKey, TValue, TCapacity, TGrowOnOverflow, TCompare, TAllocator >:
+ Zusammengehörigkeiten von std::fixed_sorted_vector< TKey, TValue, TCapacity, TGrowOnOverflow, TCompare, TAllocator >:

Öffentliche Typen

using key_type = TKey
 
using mapped_type = TValue
 
using size_type = Base::size_type
 
using value_type = Base::value_type
 
using iterator = Base::iterator
 
using const_iterator = Base::const_iterator
 
using allocator_type = Base::allocator_type
 

Öffentliche Methoden

 fixed_sorted_vector (const allocator_type &allocator=allocator_type())
 
pair< iterator, bool > insert (const value_type &val)
 
pair< iterator, bool > insert (const key_type &k, const mapped_type &v)
 
iterator find (const key_type &k)
 
const_iterator find (const key_type &k) const
 
iterator erase (iterator it)
 
size_type erase (const key_type &k)
 
iterator lower_bound (const key_type &k)
 
const_iterator lower_bound (const key_type &k) const
 
iterator upper_bound (const key_type &k)
 
const_iterator upper_bound (const key_type &k) const
 

Ausführliche Beschreibung

template<typename TKey, typename TValue, int TCapacity, bool TGrowOnOverflow, class TCompare = std::less<TKey>, class TAllocator = std::allocator>
class std::fixed_sorted_vector< TKey, TValue, TCapacity, TGrowOnOverflow, TCompare, TAllocator >

Dokumentation der benutzerdefinierten Datentypen

◆ allocator_type

using std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::allocator_type = Base::allocator_type
inherited

◆ const_iterator

using std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::const_iterator = Base::const_iterator
inherited

◆ iterator

using std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::iterator = Base::iterator
inherited

◆ key_type

using std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::key_type = TKey
inherited

◆ mapped_type

using std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::mapped_type = TValue
inherited

◆ size_type

using std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::size_type = Base::size_type
inherited

◆ value_type

using std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::value_type = Base::value_type
inherited

Beschreibung der Konstruktoren und Destruktoren

◆ fixed_sorted_vector()

template<typename TKey , typename TValue , int TCapacity, bool TGrowOnOverflow, class TCompare = std::less<TKey>, class TAllocator = std::allocator>
std::fixed_sorted_vector< TKey, TValue, TCapacity, TGrowOnOverflow, TCompare, TAllocator >::fixed_sorted_vector ( const allocator_type allocator = allocator_type())
inlineexplicit
45  : sorted_vector(allocator)
46  {
47  }

Dokumentation der Elementfunktionen

◆ erase() [1/2]

iterator std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::erase ( iterator  it)
inlineinherited
134  {
135  assert(invariant());
136  return Base::erase(it);
137  }

◆ erase() [2/2]

size_type std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::erase ( const key_type k)
inlineinherited

◆ find() [1/2]

iterator std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::find ( const key_type k)
inlineinherited

◆ find() [2/2]

const_iterator std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::find ( const key_type k) const
inlineinherited
123  {
124  assert(invariant());
126  if (i != end() && m_compare(k, *i))
127  {
128  i = end();
129  }
130  return i;
131  }

◆ insert() [1/2]

pair<iterator, bool> std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::insert ( const value_type val)
inlineinherited
94  {
95  assert(invariant());
96  bool found(true);
97  iterator it = lower_bound(val.first);
98  assert(it == end() || !m_compare(*it, val));
99  if (it == end() || m_compare(*it, val))
100  {
101  it = Base::insert(it, val);
102  found = false;
103  }
104  assert(invariant());
105  return pair<iterator, bool>(it, !found);
106  }

◆ insert() [2/2]

pair<iterator, bool> std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::insert ( const key_type k,
const mapped_type v 
)
inlineinherited

◆ lower_bound() [1/2]

iterator std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::lower_bound ( const key_type k)
inlineinherited
153  {
154  return std::lower_bound(begin(), end(), k, m_compare);
155  }
TIter lower_bound(TIter first, TIter last, const T &val, const TPred &pred)
Definition: algorithm.hpp:119

◆ lower_bound() [2/2]

const_iterator std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::lower_bound ( const key_type k) const
inlineinherited
157  {
158  return std::lower_bound(begin(), end(), k, m_compare);
159  }
TIter lower_bound(TIter first, TIter last, const T &val, const TPred &pred)
Definition: algorithm.hpp:119

◆ upper_bound() [1/2]

iterator std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::upper_bound ( const key_type k)
inlineinherited
161  {
162  return std::upper_bound(begin(), end(), k, m_compare);
163  }
TIter upper_bound(TIter first, TIter last, const T &val, const TPred &pred)
Definition: algorithm.hpp:136

◆ upper_bound() [2/2]

const_iterator std::sorted_vector< TKey, TValue, TCompare, TAllocator, fixed_vector_storage< pair< TKey, TValue >, TAllocator, TCapacity, TGrowOnOverflow > >::upper_bound ( const key_type k) const
inlineinherited
165  {
166  return std::upper_bound(begin(), end(), k, m_compare);
167  }
TIter upper_bound(TIter first, TIter last, const T &val, const TPred &pred)
Definition: algorithm.hpp:136

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: