galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Memory.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_MEM_MEMORY_HPP_
9#define GALAXY_MEM_MEMORY_HPP_
10
11#include <optional>
12#include <vector>
13
15
16namespace galaxy
17{
18 namespace mem
19 {
27 template<meta::is_object Object>
28 using ref = std::reference_wrapper<Object>;
29
35 template<meta::is_object Object>
36 using opt_ref = std::optional<std::reference_wrapper<Object>>;
37
45 template<typename Type>
46 using vec_ref = std::reference_wrapper<std::vector<Type>>;
47 } // namespace mem
48} // namespace galaxy
49
50#endif
std::reference_wrapper< std::vector< Type > > vec_ref
Vector reference.
Definition Memory.hpp:46
std::reference_wrapper< Object > ref
Reference wrapper.
Definition Memory.hpp:28
std::optional< std::reference_wrapper< Object > > opt_ref
Optional reference.
Definition Memory.hpp:36
Animated.cpp galaxy.
Definition Animated.cpp:16