1.10 |
constexpr vector that tries to behave like, or have an API like, std::vector. More...
#include <fixedvector.h>
Public Types | |
using | const_iterator = T const * |
using | const_pointer = T const * |
using | const_reference = value_type const & |
using | const_reverse_iterator = ::std::reverse_iterator< const_iterator > |
using | difference_type = std::ptrdiff_t |
using | iterator = T * |
using | pointer = T * |
using | reference = value_type & |
using | reverse_iterator = ::std::reverse_iterator< iterator > |
using | size_type = size_t |
using | value_type = T |
Public Member Functions | |
constexpr | FixedVector ()=default |
template<typename I > | |
constexpr | FixedVector (I begin, const I &end) noexcept |
constexpr | FixedVector (size_type count, const T &value) noexcept |
constexpr | FixedVector (std::initializer_list< T > init) noexcept |
constexpr reference | at (size_type pos) |
constexpr const_reference | at (size_type pos) const |
constexpr const_reference | back () const noexcept |
constexpr reference | back () noexcept |
constexpr const_iterator | begin () const noexcept |
constexpr iterator | begin () noexcept |
constexpr auto | capacity () const noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cbegin () noexcept |
constexpr const_iterator | cend () const noexcept |
constexpr const_iterator | cend () noexcept |
constexpr void | clear () noexcept |
constexpr const T * | data () const |
template<typename... Args> | |
void | emplace_back (Args &&... args) noexcept |
constexpr auto | empty () const noexcept |
constexpr const_iterator | end () const noexcept |
constexpr iterator | end () noexcept |
constexpr iterator | erase (const_iterator first, const_iterator last) noexcept |
constexpr iterator | erase (const_iterator position) noexcept |
constexpr const_reference | front () const noexcept |
constexpr reference | front () noexcept |
constexpr const_reference | operator[] (size_type pos) const noexcept |
constexpr reference | operator[] (size_type pos) noexcept |
void | push_back () noexcept |
Appends a default constructed T at the end of the FixedVector. | |
template<typename U > | |
constexpr void | push_back (U &&value) noexcept |
const_reverse_iterator | rbegin () const noexcept |
reverse_iterator | rbegin () noexcept |
const_reverse_iterator | rend () const noexcept |
reverse_iterator | rend () noexcept |
constexpr auto | size () const noexcept |
constexpr void | swap (FixedVector &other) noexcept |
constexpr vector that tries to behave like, or have an API like, std::vector.
The capacity is fixed at compile time with the capacity template parameter. Exceeding this capacity will throw an exception. Otherwise, the vector can be resized as necessary.
using const_iterator = T const* |
using const_pointer = T const* |
using const_reference = value_type const& |
using const_reverse_iterator = ::std::reverse_iterator<const_iterator> |
using difference_type = std::ptrdiff_t |
using iterator = T* |
using pointer = T* |
using reference = value_type& |
using reverse_iterator = ::std::reverse_iterator<iterator> |
using size_type = size_t |
using value_type = T |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Appends a default constructed T
at the end of the FixedVector.
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |