Vector.hpp
A scaled-up version of std::vector with additional functionality.
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_VECTOR_HPP_GUARD
-
template<typename VALUE_T, size_t MAX_SIZE = 0>
class Vector - #include <Vector.hpp>
A class that can be either a static or dynamic vector, with extra functionality.
- Template Parameters:
VALUE_T – Value type that the vector will be using.
MAX_SIZE – Maximum number of entries in vector (use 0 for unlimited)
Public Functions
-
Vector() = default
-
~Vector() = default
-
inline size_t size() const
-
inline auto begin() noexcept
-
inline auto begin() const noexcept
-
inline auto end() noexcept
-
inline auto end() const noexcept
-
inline void reserve(size_t size_cap)
-
template<typename T>
inline void Erase(size_t pos, size_t count = 1)
Private Types
-
using static_t = StaticVector<VALUE_T, MAX_SIZE>