11 #ifndef __ARRAY_HEADER
12 #define __ARRAY_HEADER
21 template<
typename T, u
int16_t N>
46 array_[
i] = arg.array_[
i];
53 array_[
i] = rhs.array_[
i];
130 template<
typename Archive>
148 #endif //__ARRAY_HEADER
T * data()
just return the internal cpp-array
Definition: array.hpp:79
constexpr size_type size()
retuns the size (equal to N)
Definition: array.hpp:85
void print(S &os) const
print to any stream-concept
Definition: array.hpp:117
array()
just initialises all with "zeros"
Definition: array.hpp:29
T & operator[](size_type const &pos)
returns element at a position
Definition: array.hpp:62
array(array const &arg)
copy constructor
Definition: array.hpp:44
uint16_t size_type
Definition: array.hpp:25
basically just a wrap for an cpp-array
Definition: array.hpp:22
array(T const &init)
initialises all with init
Definition: array.hpp:37
T const & operator[](size_type const &pos) const
returns element at a position (const version)
Definition: array.hpp:72
void serialize(Archive &ar)
serializes to or from archive
Definition: array.hpp:131
#define F(x)
Definition: ustd_generic.hpp:15
void clear()
set all elements to "zero"
Definition: array.hpp:138
#define ASSERT(exp)
Definition: ard_assert.hpp:33
array & operator=(array const &rhs)
asignment operator
Definition: array.hpp:51
T value_type
Definition: array.hpp:24