Memory management system.
More...
|
| template<typename T, typename... Args> |
| constexpr Ref< T > | Raven::CreateRef (Args &&... args) |
| | Helper to create a Ref<T> by allocating with rnew.
|
Memory management system.
◆ AllocatorType
Types of allocators supported by ScopeWithAllocator.
| Enumerator |
|---|
| None | No allocator (default).
|
| Stack | Stack-based allocator.
|
| Malevolent | Pool-based allocator.
|
◆ CreateRef()
template<typename T, typename... Args>
| Ref< T > Raven::CreateRef |
( |
Args &&... | args | ) |
|
|
inlineconstexpr |
Helper to create a Ref<T> by allocating with rnew.
Constructs a new T with the given arguments and returns a Ref<T>.
- Template Parameters
-
- Parameters
-
| args | Constructor arguments for T. |
- Returns
- Ref<T> managing the new object.