reference_vector.hpp
A version of vector that holds only references to objects. Be careful!
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2019-2024 Michigan State University MIT Software license; see doc/LICENSE.md
Note
Status: ALPHA
Defines
-
INCLUDE_EMP_DATASTRUCTS_REFERENCE_VECTOR_HPP_GUARD
-
template<typename T>
class reference_vector - #include <reference_vector.hpp>
Private Types
-
using this_t = reference_vector<T>
-
class Iterator
Public Functions
-
inline T &operator*()
Return a reference to the element pointed to by this iterator; may advance iterator.
-
inline const T &operator*() const
Return a const reference to the element pointed to by this iterator.
-
inline operator bool() const
Is this iterator pointing to a valid position in the vector?
-
inline T &operator*()
-
using this_t = reference_vector<T>