mn_vector.hpp
Go to the documentation of this file.
88 ptr->~value_type();
92 }
138 explicit basic_vector(size_type initialSize, const allocator_type& allocator = allocator_type())
141 basic_vector(const_iterator first, const_iterator last, const allocator_type& allocator = allocator_type())
454 inline basic_vector<T, TAllocator, TStorage> operator + (const basic_vector<T, TAllocator, TStorage>& a,
465 inline basic_vector<T, TAllocator, TStorage> operator + (const basic_vector<T, TAllocator, TStorage>& a,
490 inline basic_vector<T, TAllocator, TStorage> operator - (const basic_vector<T, TAllocator, TStorage>& a,
502 inline basic_vector<T, TAllocator, TStorage> operator - (const basic_vector<T, TAllocator, TStorage>& a) {
513 inline basic_vector<T, TAllocator, TStorage> operator - (const basic_vector<T, TAllocator, TStorage>& a,
538 inline basic_vector<T, TAllocator, TStorage> operator * (const basic_vector<T, TAllocator, TStorage>& a,
549 inline basic_vector<T, TAllocator, TStorage> operator * (const basic_vector<T, TAllocator, TStorage>& a,
573 inline basic_vector<T, TAllocator, TStorage> operator / (const basic_vector<T, TAllocator, TStorage>& a,
585 inline basic_vector<T, TAllocator, TStorage> operator / (const basic_vector<T, TAllocator, TStorage>& a,
610 inline basic_vector<T, TAllocator, TStorage> scale(const basic_vector<T, TAllocator, TStorage>& v,
Definition: mn_vector.hpp:117
iterator insert(iterator it, const_reference val)
Definition: mn_vector.hpp:274
const pointer const_iterator
Definition: mn_vector.hpp:128
const reference operator[](size_type i) const
Definition: mn_vector.hpp:397
void move_down_1(iterator it, int_to_type< true > itt)
Definition: mn_vector.hpp:418
basic_vector(const basic_vector &rhs, const allocator_type &allocator=allocator_type())
Definition: mn_vector.hpp:144
size_type compute_new_capacity(size_type newMinCapacity) const
Definition: mn_vector.hpp:401
void move_down(iterator it_start, iterator it_result, int_to_type< false > itt)
Definition: mn_vector.hpp:429
const allocator_type & get_allocator() const
Definition: mn_vector.hpp:377
void set_allocator(const allocator_type &allocator)
Definition: mn_vector.hpp:381
void move_down_1(iterator it, int_to_type< false > itt)
Definition: mn_vector.hpp:421
reference operator[](size_type i)
Definition: mn_vector.hpp:393
basic_vector(const_iterator first, const_iterator last, const allocator_type &allocator=allocator_type())
Definition: mn_vector.hpp:141
iterator erase(iterator first, iterator last)
Definition: mn_vector.hpp:318
void insert(iterator it, size_type n, const reference val)
Definition: mn_vector.hpp:266
basic_vector(size_type initialSize, const allocator_type &allocator=allocator_type())
Definition: mn_vector.hpp:138
void push_back(const_reference v)
Definition: mn_vector.hpp:193
const reference const_at(size_type i)
Definition: mn_vector.hpp:189
basic_vector & operator=(const basic_vector &rhs)
Definition: mn_vector.hpp:389
void assign(const pointer first, const pointer last)
Definition: mn_vector.hpp:211
size_type index_of(const reference item, size_type index=0) const
Definition: mn_vector.hpp:357
bool validate_iterator(const_iterator it) const
Definition: mn_vector.hpp:385
void insert(size_type index, size_type n, const reference val)
Definition: mn_vector.hpp:228
void set_capacity(size_type newCapacity)
Definition: mn_vector.hpp:353
basic_vector(const allocator_type &allocator=allocator_type())
Definition: mn_vector.hpp:135
static const size_type kInitialCapacity
Definition: mn_vector.hpp:133
void move_down(iterator it_start, iterator it_result, int_to_type< true > itt)
Definition: mn_vector.hpp:425
mn::ptrdiff_t difference_type
Definition: mn_vector.hpp:126
basic_vector< T, TAllocator, TStorage > scale(const basic_vector< T, TAllocator, TStorage > &v, const T s)
Definition: mn_vector.hpp:610
void swap(basic_vector< T, TAllocator, TStorage > &a, basic_vector< T, TAllocator, TStorage > &b)
Definition: mn_vector.hpp:447
basic_tuple< N, T > operator+(const basic_tuple< N, T > &a, const basic_tuple< N, U > &b)
Definition: mn_tuple.hpp:272
basic_tuple< N, T > operator*(const basic_tuple< N, T > &a, const basic_tuple< N, U > &b)
Definition: mn_tuple.hpp:288
basic_tuple< N, T > operator-(const basic_tuple< N, T > &a, const basic_tuple< N, U > &b)
Definition: mn_tuple.hpp:280
basic_tuple< N, T > operator/(const basic_tuple< N, T > &a, const basic_tuple< N, U > &b)
Definition: mn_tuple.hpp:296
void move_n(const T *from, mn::size_t n, T *result, int_to_type< false >)
Definition: mn_utils.hpp:68
void move(const T *first, const T *last, T *result, int_to_type< false >)
Definition: mn_utils.hpp:79
void copy(const T *first, const T *last, T *result, int_to_type< false >)
Definition: mn_utils.hpp:56
struct mn::memory::detail::ptr_difference T
Definition: mn_atomic_singleton.hpp:38
malloc_allocator< basic_allocator_filter > default_allocator
Definition: mn_default_allocator.hpp:30
Definition: mn_allocator_typetraits.hpp:25
void copy_n(const T *src, size_t n, T *dest)
Copy N elements from src to dest.
Definition: mn_algorithm.hpp:74
Definition: mn_vector.hpp:36
pointer m_capacityEnd
Definition: mn_vector.hpp:112
void reallocate_discard_old(size_type newCapacity)
Definition: mn_vector.hpp:66
allocator_type m_allocator
Definition: mn_vector.hpp:113
void reallocate(size_type newCapacity, size_type oldSize)
Definition: mn_vector.hpp:50
void destroy(pointer ptr, size_type n)
Definition: mn_vector.hpp:83
TAllocator allocator_type
Definition: mn_vector.hpp:37
basic_vector_storage(const allocator_type &allocator)
Definition: mn_vector.hpp:47
Definition: mn_typetraits.hpp:365
Definition: mn_inttokey.hpp:25
Definition: mn_typetraits.hpp:159
Definition: mn_iterator.hpp:36