Add util::spatial_array::empty
This commit is contained in:
parent
488290be4f
commit
6c5815ff76
1 changed files with 7 additions and 1 deletions
|
|
@ -4,7 +4,6 @@
|
||||||
#include <psemek/util/exception.hpp>
|
#include <psemek/util/exception.hpp>
|
||||||
#include <psemek/util/to_string.hpp>
|
#include <psemek/util/to_string.hpp>
|
||||||
|
|
||||||
#include <stdexcept>
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
namespace psemek::util
|
namespace psemek::util
|
||||||
|
|
@ -36,6 +35,7 @@ namespace psemek::util
|
||||||
void expand(Ix ... index);
|
void expand(Ix ... index);
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
|
bool empty() const;
|
||||||
|
|
||||||
T * begin();
|
T * begin();
|
||||||
T * end();
|
T * end();
|
||||||
|
|
@ -200,6 +200,12 @@ namespace psemek::util
|
||||||
array_.clear();
|
array_.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T, std::size_t N, typename Index>
|
||||||
|
bool spatial_array<T, N, Index>::empty() const
|
||||||
|
{
|
||||||
|
return array_.empty();
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T, std::size_t N, typename Index>
|
template <typename T, std::size_t N, typename Index>
|
||||||
T * spatial_array<T, N, Index>::begin()
|
T * spatial_array<T, N, Index>::begin()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue