StaticVector.hpp
A simple replacement for std::vector when maximum size is known at compile time.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2025 Michigan State University MIT Software license; see doc/LICENSE.md
Note
Status: ALPHA
Defines
-
INCLUDE_EMP_DATASTRUCTS_STATIC_VECTOR_HPP_GUARD
-
template<typename VALUE_T, size_t MAX_SIZE>
class StaticVector - #include <StaticVector.hpp>
Public Functions
-
StaticVector() = default
-
StaticVector(const StaticVector&) = default
-
StaticVector(StaticVector&&) = default
-
~StaticVector() = default
-
inline auto begin() noexcept
-
inline auto begin() const noexcept
-
inline auto end() noexcept
-
inline auto end() const noexcept
-
inline size_t size() const
-
template<typename T>
inline void Erase(size_t pos, size_t count = 1)
Private Types
-
using this_t = StaticVector<VALUE_T, MAX_SIZE>
Private Functions
-
inline void RawMove(size_t from_id, size_t to_id, size_t count)
-
StaticVector() = default