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
14
15namespace galaxy
16{
17 namespace mem
18 {
26 template<meta::is_object Object>
27 using ref = std::reference_wrapper<Object>;
28
34 template<meta::is_object Object>
35 using opt_ref = std::optional<std::reference_wrapper<Object>>;
36 } // namespace mem
37} // namespace galaxy
38
39#endif
std::reference_wrapper< Object > ref
Reference wrapper.
Definition Memory.hpp:27
std::optional< std::reference_wrapper< Object > > opt_ref
Optional reference.
Definition Memory.hpp:35
Timer.hpp galaxy.
Definition Timer.cpp:18