Owning container that stores uniquely-owned objects of type T.
More...
#include <aeongames/Container.hpp>
|
| template<typename... Args> |
| T * | Store (Args... args) |
| | Construct and store a new object in-place.
|
| T * | Store (std::unique_ptr< T > &&value) |
| | Store an existing uniquely-owned object.
|
| std::unique_ptr< T > | Dispose (const T *t) |
| | Remove an object from the container and return ownership.
|
template<class T>
class AeonGames::Container< T >
Owning container that stores uniquely-owned objects of type T.
- Template Parameters
-
| T | The type of objects stored in the container. |
Definition at line 30 of file Container.hpp.
◆ Dispose()
Remove an object from the container and return ownership.
- Parameters
-
| t | Pointer to the object to dispose. |
- Returns
- Unique pointer to the removed object, or nullptr if not found.
Definition at line 60 of file Container.hpp.
◆ Store() [1/2]
template<class T>
template<typename... Args>
Construct and store a new object in-place.
- Template Parameters
-
| Args | Constructor argument types. |
- Parameters
-
| args | Arguments forwarded to the T constructor. |
- Returns
- Raw pointer to the newly stored object.
Definition at line 40 of file Container.hpp.
◆ Store() [2/2]
Store an existing uniquely-owned object.
- Parameters
-
| value | Unique pointer to the object to store (moved). |
- Returns
- Raw pointer to the stored object.
Definition at line 50 of file Container.hpp.
The documentation for this class was generated from the following file: