|
| vector () noexcept(noexcept(Array())) |
|
| vector (const allocator_type &alloc) noexcept |
|
| vector (size_type count, const allocator_type &alloc=allocator_type()) |
|
| vector (size_type count, const value_type &value, const allocator_type &alloc=allocator_type()) |
|
template<typename Iterator , typename = typename std::iterator_traits<Iterator>::iterator_category> |
| vector (Iterator first, Iterator last, const allocator_type &alloc=allocator_type()) |
|
| vector (std::initializer_list< value_type > values, const allocator_type &alloc=allocator_type()) |
|
| vector (vector &&right) noexcept |
|
| vector (vector &&right, const momo::internal::Identity< allocator_type > &alloc) noexcept(std::is_empty< allocator_type >::value) |
|
| vector (const vector &right) |
|
| vector (const vector &right, const momo::internal::Identity< allocator_type > &alloc) |
|
| ~vector ()=default |
|
vector & | operator= (vector &&right) noexcept(std::is_empty< allocator_type >::value||std::allocator_traits< allocator_type >::propagate_on_container_move_assignment::value) |
|
vector & | operator= (const vector &right) |
|
vector & | operator= (std::initializer_list< value_type > values) |
|
void | swap (vector &right) noexcept |
|
const nested_container_type & | get_nested_container () const noexcept |
|
nested_container_type & | get_nested_container () noexcept |
|
const_iterator | begin () const noexcept |
|
iterator | begin () noexcept |
|
const_iterator | end () const noexcept |
|
iterator | end () noexcept |
|
const_reverse_iterator | rbegin () const noexcept |
|
reverse_iterator | rbegin () noexcept |
|
const_reverse_iterator | rend () const noexcept |
|
reverse_iterator | rend () noexcept |
|
const_iterator | cbegin () const noexcept |
|
const_iterator | cend () const noexcept |
|
const_reverse_iterator | crbegin () const noexcept |
|
const_reverse_iterator | crend () const noexcept |
|
value_type * | data () noexcept |
|
const value_type * | data () const noexcept |
|
allocator_type | get_allocator () const noexcept |
|
size_type | max_size () const noexcept |
|
size_type | size () const noexcept |
|
void | resize (size_type size) |
|
void | resize (size_type size, const value_type &value) |
|
MOMO_NODISCARD bool | empty () const noexcept |
|
void | clear () noexcept |
|
size_type | capacity () const noexcept |
|
void | reserve (size_type count) |
|
void | shrink_to_fit () |
|
const_reference | operator[] (size_type index) const |
|
reference | operator[] (size_type index) |
|
const_reference | at (size_type index) const |
|
reference | at (size_type index) |
|
reference | front () |
|
const_reference | front () const |
|
reference | back () |
|
const_reference | back () const |
|
void | push_back (value_type &&value) |
|
void | push_back (const value_type &value) |
|
iterator | insert (const_iterator where, value_type &&value) |
|
iterator | insert (const_iterator where, const value_type &value) |
|
iterator | insert (const_iterator where, size_type count, const value_type &value) |
|
template<typename Iterator , typename = typename std::iterator_traits<Iterator>::iterator_category> |
iterator | insert (const_iterator where, Iterator first, Iterator last) |
|
iterator | insert (const_iterator where, std::initializer_list< value_type > values) |
|
template<typename... ValueArgs> |
reference | emplace_back (ValueArgs &&... valueArgs) |
|
template<typename... ValueArgs> |
iterator | emplace (const_iterator where, ValueArgs &&... valueArgs) |
|
void | pop_back () |
|
iterator | erase (const_iterator where) |
|
iterator | erase (const_iterator first, const_iterator last) |
|
void | assign (size_type count, const value_type &value) |
|
template<typename Iterator , typename = typename std::iterator_traits<Iterator>::iterator_category> |
void | assign (Iterator first, Iterator last) |
|
void | assign (std::initializer_list< value_type > values) |
|
bool | operator== (const vector &right) const |
|
bool | operator!= (const vector &right) const |
|
bool | operator< (const vector &right) const |
|
bool | operator> (const vector &right) const |
|
bool | operator<= (const vector &right) const |
|
bool | operator>= (const vector &right) const |
|
template<typename TValue, typename TAllocator = std::allocator<TValue>, typename TArray = Array<TValue, MemManagerStd<TAllocator>>>
class momo::stdish::vector< TValue, TAllocator, TArray >
momo::stdish::vector
is similar to std::vector
.
It is allowed to pass to functions push_back
, insert
, emplace_back
and emplace
references to items within the container. But in case of the function insert
, receiving pair of iterators, it's not allowed to pass iterators pointing to the items within the container.