Documentation Home >> Headers >> <jss/synchronized_value.hpp> Header >> jss::synchronized_value >> jss::synchronized_value Constructor

Construct a jss::synchronized_value instance. Construct the wrapped object with the supplied argument set.

template<typename ... Args>
synchronized_value(Args&& ... args);

Requires:

T is constructible from the supplied argument set.

Effects:

Constructs a jss::synchronized_value instance containing an object constructed with T(std::forward<Args>(args)...). This is "perfect forwarding", so any arguments that would be valid arguments for constructing an object of type T can be supplied. If no arguments are supplied then the wrapped object is default-constructed.

Throws:

Any exceptions thrown by the construction of the wrapped object.

Header

#include <jss/synchronized_value.hpp>

See Also