|
|
using | element_type = T |
| |
|
using | pointer = element_type * |
| |
|
using | reference = element_type & |
| |
◆ get()
◆ get_or_make()
template<typename T >
template<typename... Args>
Get or make an object.
This function will return a previously created object, or if the internal pointer is null a new element_type is constructed and returned.
It is possible for the element_type to be constructed multiple times during a race, but only one will be returned from this function.
- Parameters
-
| args | The arguments passed to the constructor |
- Returns
- A reference to an existing or just constructed object.
The documentation for this class was generated from the following file: