|
EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
|
Provides a simple thread-safe runtime ID generator for Object managers. More...
#include <IDAllocator.hpp>
Static Public Member Functions | |
| static id_type | allocate () noexcept |
| Allocate the next ID. | |
Static Public Attributes | |
| static constexpr id_type | invalid_id = std::numeric_limits<id_type>::max() |
| Sentinel ID used by invalidated (moved-from) objects. | |
Static Private Attributes | |
| static std::atomic< id_type > | next_id = 0 |
Provides a simple thread-safe runtime ID generator for Object managers.
Definition at line 27 of file IDAllocator.hpp.
|
inlinestaticnodiscardnoexcept |
Allocate the next ID.
Definition at line 43 of file IDAllocator.hpp.
|
staticconstexpr |
Sentinel ID used by invalidated (moved-from) objects.
This value is reserved and must never be returned by allocate.
Definition at line 35 of file IDAllocator.hpp.
|
inlinestaticprivate |
Definition at line 51 of file IDAllocator.hpp.