CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace utils {
27 template<
typename T,
size_t N>
65 const T*
end()
const {
105 return !(*
this == rhs);
constexpr bool operator!=(const CheckedArray &rhs) const
Returns true if this array is not equal to rhs.
Definition: CheckedArray.h:104
bool empty() const
Returns true if the array is empty, false otherwise.
Definition: CheckedArray.h:35
const T * cend() const
Returns a const iterator that represents one past last element.
Definition: CheckedArray.h:75
size_t m_size
Definition: CheckedArray.h:110
size_t capacity() const
Gets the capacity of the array.
Definition: CheckedArray.h:45
const T & operator[](size_t index) const
Definition: CheckedArray.h:91
const T * end() const
Returns a const iterator that represents one past last element.
Definition: CheckedArray.h:65
An array that checks for overflow.
Definition: CheckedArray.h:28
size_t size() const
Gets the size of the array.
Definition: CheckedArray.h:40
constexpr bool operator==(const CheckedArray &rhs) const
Returns true if this array is equal to rhs.
Definition: CheckedArray.h:99
#define CATAPULT_THROW_OUT_OF_RANGE(MESSAGE)
Macro used to throw a catapult out of range.
Definition: exceptions.h:191
T m_data[N]
Definition: CheckedArray.h:109
CheckedArray()
Definition: CheckedArray.h:30
T & operator[](size_t index)
Definition: CheckedArray.h:82
void push_back(T val)
Definition: CheckedArray.h:51
Definition: AddressExtractionExtension.cpp:28
const T * cbegin() const
Returns a const iterator that represents first element.
Definition: CheckedArray.h:70
const T * begin() const
Returns a const iterator that represents first element.
Definition: CheckedArray.h:60