Make SeArray::Size() static.
This commit is contained in:
@@ -58,11 +58,6 @@ public:
|
|||||||
return Storage_.data() + Storage_.size();
|
return Storage_.data() + Storage_.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr size_t Size() const noexcept
|
|
||||||
{
|
|
||||||
return Storage_.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Fill(const T & value)
|
void Fill(const T & value)
|
||||||
{
|
{
|
||||||
Storage_.fill(value);
|
Storage_.fill(value);
|
||||||
@@ -73,6 +68,11 @@ public:
|
|||||||
EraseImpl();
|
EraseImpl();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static constexpr size_t Size() noexcept
|
||||||
|
{
|
||||||
|
return S;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::array<T, S> Storage_;
|
std::array<T, S> Storage_;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user