Implements a registry that allows registration of ranges (blocks) of keys to be used by an entity that has a unique id. More...
Public Member Functions | |
block_registry (const size_type id, const size_type num_ids) | |
block_registry & | operator= (block_registry &&other) |
bool | empty (void) const |
size_type | find_id (const key_type key) const noexcept |
Returns the id that the key belongs to. | |
key_type | reserve_id (void) |
void | insert (const key_type key, value_type const &value) |
void | erase (const key_type key) |
value_type const & | retrieve (const key_type key) const |
bool | try_retrieve (const key_type key, value_type &value) const |
Public Types | |
typedef Key | key_type |
typedef Mapped | value_type |
typedef std::size_t | size_type |
Implements a registry that allows registration of ranges (blocks) of keys to be used by an entity that has a unique id.