Documentation Home >> Headers >> <jss/synchronized_value.hpp> Header >> jss::update_guard >> jss::update_guard::operator-> member access operator

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

T* operator->();

Requires:

Given an object guard of type jss::update_guard<T>, and an object p of type T*, guard->'['some-expr] is valid if and only if p->`some-expr would be valid.

Returns:

A pointer 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 pointer must not be accessed after *this has been destroyed.

Header

#include <jss/synchronized_value.hpp>

See Also