10 template<
class T,
size_t N>
36 for (
size_t i = 0; i < other.size_; i++)
38 beg_[i] = std::move(other.beg_[i]);
41 this->
size_ = other.size_;
47 for (
size_t i = 0; i < other.
size_; i++)
74 for (
size_t i = 0; i < other.
size_; i++)
90 for (
size_t i = 0; i < other.size_; i++)
92 beg_[i] = std::move(other.beg_[i]);
95 this->
size_ = other.size_;
103 if (
this == &other) {
return true; }
105 if (this->
size_ != other.
size_) {
return false; }
107 for (
int i = 0; i <
size_; i++)
109 if ( (*
this)[i] != other[i])
121 return (
beg_)[index];
127 return (
beg_)[index];
132 return (*
this)[
size_ - 1];
137 return (*
this)[
size_ - 1];
#define SAMURAI_ASSERT(expression, comment)
StaticVector(std::initializer_list< T > &&l)
void push_back(const T &el)
StaticVector & operator=(const StaticVector &other)
static constexpr unsigned int capacity
StaticVector(const StaticVector &other)
constIterator begin() const
StaticVector(StaticVector &&other)
constIterator end() const
T & operator[](size_t index)
static constexpr unsigned int MAX_SIZE
bool operator==(const StaticVector &other)