alternative Standard Libary  0.29.8
std::vector< T, TAllocator, TStorage > Template-Klassenreferenz

#include <vector.hpp>

+ Klassendiagramm für std::vector< T, TAllocator, TStorage >:
+ Zusammengehörigkeiten von std::vector< T, TAllocator, TStorage >:

Öffentliche Typen

using value_type = T
 
using iterator = T *
 
using const_iterator = const T *
 
using allocator_type = TAllocator
 
using size_type = int
 

Öffentliche Methoden

 vector (const allocator_type &allocator=allocator_type())
 
 vector (size_type initialSize, const allocator_type &allocator=allocator_type())
 
 vector (const T *first, const T *last, const allocator_type &allocator=allocator_type())
 
 vector (const vector &rhs, const allocator_type &allocator=allocator_type())
 
 vector (e_noinitialize n)
 
 ~vector ()
 
vectoroperator= (const vector &rhs)
 
void copy (const vector &rhs)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
size_type size () const
 
bool empty () const
 
size_type capacity () const
 
T * data ()
 
const T * data () const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
T & operator[] (size_type i)
 
const T & operator[] (size_type i) const
 
T & at (size_type i)
 
const T & at (size_type i) const
 
void push_back (const T &v)
 
void push_back ()
 
void pop_back ()
 
void assign (const T *first, const T *last)
 
void insert (size_type index, size_type n, const T &val)
 
void insert (iterator it, size_type n, const T &val)
 
iterator insert (iterator it, const T &val)
 
iterator erase (iterator it)
 
iterator erase (iterator first, iterator last)
 
void erase_unostdred (iterator it)
 
void resize (size_type n)
 
void reserve (size_type n)
 
void clear ()
 
void reset ()
 
void set_capacity (size_type newCapacity)
 
size_type index_of (const T &item, size_type index=0) const
 
iterator find (const T &item)
 
const allocator_typeget_allocator () const
 
void set_allocator (const allocator_type &allocator)
 
bool validate_iterator (const_iterator it) const
 
size_type get_high_watermark () const
 

Statische öffentliche Attribute

static const size_type kInitialCapacity = 16
 
static const size_type npos = size_type(-1)
 

Ausführliche Beschreibung

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
class std::vector< T, TAllocator, TStorage >

Dokumentation der benutzerdefinierten Datentypen

◆ allocator_type

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
using std::vector< T, TAllocator, TStorage >::allocator_type = TAllocator

◆ const_iterator

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
using std::vector< T, TAllocator, TStorage >::const_iterator = const T*

◆ iterator

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
using std::vector< T, TAllocator, TStorage >::iterator = T*

◆ size_type

using std::base_vector::size_type = int
inherited

◆ value_type

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
using std::vector< T, TAllocator, TStorage >::value_type = T

Beschreibung der Konstruktoren und Destruktoren

◆ vector() [1/5]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
std::vector< T, TAllocator, TStorage >::vector ( const allocator_type allocator = allocator_type())
inlineexplicit
129  : TStorage(allocator)
130  {
131  }

◆ vector() [2/5]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
std::vector< T, TAllocator, TStorage >::vector ( size_type  initialSize,
const allocator_type allocator = allocator_type() 
)
inlineexplicit
133  : TStorage(allocator)
134  {
135  resize(initialSize);
136  }
void resize(size_type n)
Definition: vector.hpp:430

◆ vector() [3/5]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
std::vector< T, TAllocator, TStorage >::vector ( const T *  first,
const T *  last,
const allocator_type allocator = allocator_type() 
)
inline
138  : TStorage(allocator)
139  {
140  assign(first, last);
141  }
void assign(const T *first, const T *last)
Definition: vector.hpp:290

◆ vector() [4/5]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
std::vector< T, TAllocator, TStorage >::vector ( const vector< T, TAllocator, TStorage > &  rhs,
const allocator_type allocator = allocator_type() 
)
inline
143  : TStorage(allocator)
144  {
145  if(rhs.size() == 0)
146  return;
147  this->reallocate_discard_old(rhs.capacity());
148  std::copy_construct_n(rhs.m_begin, rhs.size(), m_begin);
149  m_end = m_begin + rhs.size();
150  TStorage::record_high_watermark();
151  assert(invariant());
152  }
void copy_construct_n(T *first, size_t n, T *result)
Definition: algorithm.hpp:43

◆ vector() [5/5]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
std::vector< T, TAllocator, TStorage >::vector ( e_noinitialize  n)
inlineexplicit
154  : TStorage(n)
155  {
156  }

◆ ~vector()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
std::vector< T, TAllocator, TStorage >::~vector ( )
inline
158  {
159  if (TStorage::m_begin != 0)
160  TStorage::destroy(TStorage::m_begin, size());
161  }
size_type size() const
Definition: vector.hpp:197

Dokumentation der Elementfunktionen

◆ assign()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::assign ( const T *  first,
const T *  last 
)
inline
291  {
292  assert(!validate_iterator(first));
293  assert(!validate_iterator(last));
294 
295  const size_type count = size_type(last - first);
296  assert(count > 0);
297  clear();
298  if (m_begin + count > m_capacityEnd)
299  reallocate_discard_old(compute_new_capacity(count));
300 
301  std::copy_n(first, count, m_begin);
302  m_end = m_begin + count;
303  TStorage::record_high_watermark();
304  assert(invariant());
305  }
int size_type
Definition: vector.hpp:43
void copy_n(const T *first, size_t n, T *result)
Definition: algorithm.hpp:35
void clear()
Definition: vector.hpp:442
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484

◆ at() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
T& std::vector< T, TAllocator, TStorage >::at ( size_type  i)
inline
251  {
252  assert(i < size());
253  return m_begin[i];
254  }
size_type size() const
Definition: vector.hpp:197

◆ at() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const T& std::vector< T, TAllocator, TStorage >::at ( size_type  i) const
inline
257  {
258  assert(i < size());
259  return m_begin[i];
260  }
size_type size() const
Definition: vector.hpp:197

◆ back() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
T& std::vector< T, TAllocator, TStorage >::back ( )
inline
230  {
231  assert(!empty());
232  return *(end() - 1);
233  }
bool empty() const
Definition: vector.hpp:201
iterator end()
Definition: vector.hpp:189

◆ back() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const T& std::vector< T, TAllocator, TStorage >::back ( ) const
inline
235  {
236  assert(!empty());
237  return *(end() - 1);
238  }
bool empty() const
Definition: vector.hpp:201
iterator end()
Definition: vector.hpp:189

◆ begin() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
iterator std::vector< T, TAllocator, TStorage >::begin ( )
inline
182  {
183  return m_begin;
184  }

◆ begin() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const_iterator std::vector< T, TAllocator, TStorage >::begin ( ) const
inline
186  {
187  return m_begin;
188  }

◆ capacity()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
size_type std::vector< T, TAllocator, TStorage >::capacity ( ) const
inline
206  {
207  return size_type(m_capacityEnd - m_begin);
208  }
int size_type
Definition: vector.hpp:43

◆ clear()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::clear ( )
inline
443  {
444  shrink(0);
445  assert(invariant());
446  }

◆ copy()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::copy ( const vector< T, TAllocator, TStorage > &  rhs)
inline
169  {
170  const size_type newSize = rhs.size();
171  if (newSize > capacity())
172  {
173  reallocate_discard_old(rhs.capacity());
174  }
175  std::copy_construct_n(rhs.m_begin, newSize, m_begin);
176  m_end = m_begin + newSize;
177  TStorage::record_high_watermark();
178  assert(invariant());
179  }
void copy_construct_n(T *first, size_t n, T *result)
Definition: algorithm.hpp:43
size_type capacity() const
Definition: vector.hpp:205
int size_type
Definition: vector.hpp:43

◆ data() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
T* std::vector< T, TAllocator, TStorage >::data ( )
inline
211  {
212  return empty() ? 0 : m_begin;
213  }
bool empty() const
Definition: vector.hpp:201

◆ data() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const T* std::vector< T, TAllocator, TStorage >::data ( ) const
inline
215  {
216  return empty() ? 0 : m_begin;
217  }
bool empty() const
Definition: vector.hpp:201

◆ empty()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
bool std::vector< T, TAllocator, TStorage >::empty ( ) const
inline
202  {
203  return m_begin == m_end;
204  }

◆ end() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
iterator std::vector< T, TAllocator, TStorage >::end ( )
inline
190  {
191  return m_end;
192  }

◆ end() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const_iterator std::vector< T, TAllocator, TStorage >::end ( ) const
inline
194  {
195  return m_end;
196  }

◆ erase() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
iterator std::vector< T, TAllocator, TStorage >::erase ( iterator  it)
inline
387  {
388  assert(validate_iterator(it));
389  assert(it != end());
390  assert(invariant());
391 
392  // Move everything down, overwriting *it
393  if (it + 1 < m_end)
394  {
395  move_down_1(it, int_to_type<has_trivial_copy<T>::value>());
396  }
397  --m_end;
398  std::destruct(m_end);
399  return it;
400  }
void destruct(T *mem)
Definition: algorithm.hpp:31
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
iterator end()
Definition: vector.hpp:189

◆ erase() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
iterator std::vector< T, TAllocator, TStorage >::erase ( iterator  first,
iterator  last 
)
inline
402  {
403  assert(validate_iterator(first));
404  assert(validate_iterator(last));
405  assert(invariant());
406  if (last <= first)
407  return end();
408 
409  const size_type indexFirst = size_type(first - m_begin);
410  const size_type toRemove = size_type(last - first);
411  if (toRemove > 0)
412  {
413  move_down(last, first, int_to_type<has_trivial_copy<T>::value>());
414  shrink(size() - toRemove);
415  }
416  return m_begin + indexFirst;
417  }
size_type size() const
Definition: vector.hpp:197
int size_type
Definition: vector.hpp:43
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
iterator end()
Definition: vector.hpp:189

◆ erase_unostdred()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::erase_unostdred ( iterator  it)
inline
420  {
421  assert(validate_iterator(it));
422  assert(it != end());
423  assert(invariant());
424  const iterator itNewEnd = end() - 1;
425  if (it != itNewEnd)
426  *it = *itNewEnd;
427  pop_back();
428  }
T * iterator
Definition: vector.hpp:123
void pop_back()
Definition: vector.hpp:283
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
iterator end()
Definition: vector.hpp:189

◆ find()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
iterator std::vector< T, TAllocator, TStorage >::find ( const T &  item)
inline
467  {
468  iterator itEnd = end();
469  for (iterator it = begin(); it != itEnd; ++it)
470  if (*it == item)
471  return it;
472  return itEnd;
473  }
iterator begin()
Definition: vector.hpp:181
T * iterator
Definition: vector.hpp:123
iterator end()
Definition: vector.hpp:189

◆ front() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
T& std::vector< T, TAllocator, TStorage >::front ( )
inline
220  {
221  assert(!empty());
222  return *begin();
223  }
iterator begin()
Definition: vector.hpp:181
bool empty() const
Definition: vector.hpp:201

◆ front() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const T& std::vector< T, TAllocator, TStorage >::front ( ) const
inline
225  {
226  assert(!empty());
227  return *begin();
228  }
iterator begin()
Definition: vector.hpp:181
bool empty() const
Definition: vector.hpp:201

◆ get_allocator()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const allocator_type& std::vector< T, TAllocator, TStorage >::get_allocator ( ) const
inline
476  {
477  return m_allocator;
478  }

◆ get_high_watermark()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
size_type std::vector< T, TAllocator, TStorage >::get_high_watermark ( ) const
inline
489  {
490  return TStorage::get_high_watermark();
491  }

◆ index_of()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
size_type std::vector< T, TAllocator, TStorage >::index_of ( const T &  item,
size_type  index = 0 
) const
inline
459  {
460  assert(index >= 0 && index < size());
461  for ( ; index < size(); ++index)
462  if (m_begin[index] == item)
463  return index;
464  return npos;
465  }
size_type size() const
Definition: vector.hpp:197
static const size_type npos
Definition: vector.hpp:44

◆ insert() [1/3]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::insert ( size_type  index,
size_type  n,
const T &  val 
)
inline
308  {
309  assert(invariant());
310  const size_type indexEnd = index + n;
311  const size_type prevSize = size();
312  if (m_end + n > m_capacityEnd)
313  {
314  reallocate(compute_new_capacity(prevSize + n), prevSize);
315  }
316  if (indexEnd > prevSize)
317  {
318  const size_type numCopy = prevSize - index;
319  const size_type numAppend = indexEnd - prevSize;
320  assert(numCopy >= 0 && numAppend >= 0);
321  assert(numAppend + numCopy == n);
322  iterator itOut = m_begin + prevSize;
323  for (size_type i = 0; i < numAppend; ++i, ++itOut)
324  std::copy_construct(itOut, val);
325  std::copy_construct_n(m_begin + index, numCopy, itOut);
326  for (size_type i = 0; i < numCopy; ++i)
327  m_begin[index + i] = val;
328  }
329  else
330  {
331  std::copy_construct_n(m_end - n, n, m_end);
332  iterator insertPos = m_begin + index;
333  std::move_n(insertPos, prevSize - indexEnd, insertPos + n);
334  for (size_type i = 0; i < n; ++i)
335  insertPos[i] = val;
336  }
337  m_end += n;
338  TStorage::record_high_watermark();
339  }
size_type size() const
Definition: vector.hpp:197
void copy_construct_n(T *first, size_t n, T *result)
Definition: algorithm.hpp:43
void copy_construct(T *mem, const T &orig)
Definition: algorithm.hpp:23
T * iterator
Definition: vector.hpp:123
int size_type
Definition: vector.hpp:43
void move_n(const T *from, size_t n, T *result)
Definition: algorithm.hpp:47

◆ insert() [2/3]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::insert ( iterator  it,
size_type  n,
const T &  val 
)
inline
342  {
343  assert(validate_iterator(it));
344  assert(invariant());
345  insert(size_type(it - m_begin), n, val);
346  }
void insert(size_type index, size_type n, const T &val)
Definition: vector.hpp:307
int size_type
Definition: vector.hpp:43
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484

◆ insert() [3/3]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
iterator std::vector< T, TAllocator, TStorage >::insert ( iterator  it,
const T &  val 
)
inline
348  {
349  assert(validate_iterator(it));
350  assert(invariant());
351 
352  const size_type index = (size_type)(it - m_begin);
353  if (m_end == m_capacityEnd)
354  {
355  grow();
356  it = m_begin + index;
357  }
358  else
359  {
360  std::construct(m_end);
361  }
362 
363  if (m_end > it)
364  {
366  {
367  const size_type prevSize = size();
368  assert(index <= prevSize);
369  const size_type toMove = prevSize - index;
370 
371  std::internal::move_n(it, toMove, it + 1, int_to_type<has_trivial_copy<T>::value>());
372  }
373  else
374  {
375  assert(it < m_end);
376  const size_t n = reinterpret_cast<uintptr_t>(m_end) - reinterpret_cast<uintptr_t>(it);
377  Sys::MemMove(it + 1, it, n);
378  }
379  }
380  *it = val;
381  ++m_end;
382  assert(invariant());
383  TStorage::record_high_watermark();
384  return it;
385  }
size_type size() const
Definition: vector.hpp:197
void construct(T *mem)
Definition: algorithm.hpp:27
int size_type
Definition: vector.hpp:43
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
static void MemMove(void *to, const void *from, size_t bytes)
Definition: PLATFORM.cpp:43
void move_n(const T *from, size_t n, T *result, int_to_type< false >)
Definition: utility.hpp:92

◆ operator=()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
vector& std::vector< T, TAllocator, TStorage >::operator= ( const vector< T, TAllocator, TStorage > &  rhs)
inline
163  {
164  copy(rhs);
165  return *this;
166  }
void copy(const vector &rhs)
Definition: vector.hpp:168

◆ operator[]() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
T& std::vector< T, TAllocator, TStorage >::operator[] ( size_type  i)
inline
241  {
242  return at(i);
243  }
T & at(size_type i)
Definition: vector.hpp:250

◆ operator[]() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const T& std::vector< T, TAllocator, TStorage >::operator[] ( size_type  i) const
inline
246  {
247  return at(i);
248  }
T & at(size_type i)
Definition: vector.hpp:250

◆ pop_back()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::pop_back ( )
inline
284  {
285  assert(!empty());
286  --m_end;
287  std::destruct(m_end);
288  }
bool empty() const
Definition: vector.hpp:201
void destruct(T *mem)
Definition: algorithm.hpp:31

◆ push_back() [1/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::push_back ( const T &  v)
inline
263  {
264  if (m_end < m_capacityEnd)
265  {
266  std::copy_construct(m_end++, v);
267  }
268  else
269  {
270  grow();
271  std::copy_construct(m_end++, v);
272  }
273  TStorage::record_high_watermark();
274  }
void copy_construct(T *mem, const T &orig)
Definition: algorithm.hpp:23

◆ push_back() [2/2]

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::push_back ( )
inline
276  {
277  if (m_end == m_capacityEnd)
278  grow();
279  std::construct(m_end);
280  ++m_end;
281  TStorage::record_high_watermark();
282  }
void construct(T *mem)
Definition: algorithm.hpp:27

◆ reserve()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::reserve ( size_type  n)
inline
438  {
439  if (n > capacity())
440  reallocate(n, size());
441  }
size_type size() const
Definition: vector.hpp:197
size_type capacity() const
Definition: vector.hpp:205

◆ reset()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::reset ( )
inline
449  {
450  TStorage::reset();
451  assert(invariant());
452  }

◆ resize()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::resize ( size_type  n)
inline
431  {
432  if (n > size())
433  insert(m_end, n - size(), value_type());
434  else
435  shrink(n);
436  }
size_type size() const
Definition: vector.hpp:197
void insert(size_type index, size_type n, const T &val)
Definition: vector.hpp:307
T value_type
Definition: vector.hpp:122

◆ set_allocator()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::set_allocator ( const allocator_type allocator)
inline
480  {
481  m_allocator = allocator;
482  }

◆ set_capacity()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
void std::vector< T, TAllocator, TStorage >::set_capacity ( size_type  newCapacity)
inline
454  {
455  reallocate(newCapacity, size());
456  }
size_type size() const
Definition: vector.hpp:197

◆ size()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
size_type std::vector< T, TAllocator, TStorage >::size ( ) const
inline
198  {
199  return size_type(m_end - m_begin);
200  }
int size_type
Definition: vector.hpp:43

◆ validate_iterator()

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
bool std::vector< T, TAllocator, TStorage >::validate_iterator ( const_iterator  it) const
inline
485  {
486  return it >= begin() && it <= end();
487  }
iterator begin()
Definition: vector.hpp:181
iterator end()
Definition: vector.hpp:189

Dokumentation der Datenelemente

◆ kInitialCapacity

template<typename T, class TAllocator = std::allocator, class TStorage = standard_vector_storage<T, TAllocator>>
const size_type std::vector< T, TAllocator, TStorage >::kInitialCapacity = 16
static

◆ npos

const size_type std::base_vector::npos = size_type(-1)
staticinherited

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