Documentation Home >> Headers >> <jss/synchronized_value.hpp> Header >> jss::update_guard >> jss::update_guard::operator* pointer dereference operator

Provides access to the wrapped object of the associated jss::synchronized_value<> instance.

T& operator*();

Returns:

A reference to the T object wrapped in the associated jss::synchronized_value<> instance.

Throws:

Nothing.

Synchronization:

operator* must only be called from the thread that constructed *this.

Note:

The returned reference must not be accessed after *this has been destroyed.

Header

#include <jss/synchronized_value.hpp>

See Also