Constructors
Declared in <folly/observer/SimpleObservable.h>
Constructs the observable holding a default-constructed value.
template<typename U = T>
requires std::is_default_constructible<U>::value
SimpleObservable();
» more...
Constructs the observable holding the given value.
explicit
SimpleObservable(T value);
» more...
Constructs the observable holding the given shared value.
explicit
SimpleObservable(std::shared_ptr<T const> value);
» more...
| Name | Description |
|---|---|
| value | The initial value. |