reference_vector.hpp
A version of vector that holds only references to objects. Be careful!
Note
Status: ALPHA
-
template<typename T>
class reference_vector - #include <reference_vector.hpp>
Public Functions
-
reference_vector() = default
-
reference_vector(const reference_vector&) = default
-
reference_vector(reference_vector&&) = default
-
inline ~reference_vector()
-
this_t &operator=(const reference_vector&) = default
-
this_t &operator=(reference_vector&&) = default
-
inline size_t size() const
-
inline void resize(size_t new_size)
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*()
-
reference_vector() = default