Concurrently safe modifiers¶
All member functions in this section can be performed concurrently with each other.
If there is no current element corresponding to the current thread, this method constructs a new element. A new element is copy-constructed if an exemplar was provided to the constructor for
*this; otherwise, a new element is default-constructed.
Returns: A reference to the element of
*thisthat corresponds to the current thread.
local(), except that
existsis set to true if an element was already present for the current thread; false, otherwise.
Returns: Reference to the thread-local element.