multi_link_registry::set_bound Method
Sets an upper bound on the number of links that the multi_link_registry object can hold.
void set_bound(
size_t _MaxLinks
);
Parameters
- _MaxLinks
The maximum number of links that the multi_link_registry object can hold.
Remarks
After a bound is set, unlinking an entry will cause the multi_link_registry object to enter an immutable state where further calls to add will throw an invalid_link_target exception.
Requirements
Header: agents.h
Namespace: concurrency