7#include "observable_value.hpp"
11namespace hi::inline
v1 {
50 template<
typename... Args>
58 return ::hi::observer<value_type>(_pimpl);
67 [[nodiscard]]
auto get(
auto const& index)
const&
noexcept
80 template<fixed_
string Name>
81 [[nodiscard]]
auto get() const& noexcept
DOXYGEN BUG.
Definition algorithm.hpp:13
A observer pointing to the whole or part of a observable.
Definition observer.hpp:22
auto get(auto const &index) const noexcept
Create a sub-observer by indexing into the value.
Definition observer.hpp:513
Definition observable_value.hpp:16
Shared state of an application.
Definition shared_state.hpp:36
constexpr shared_state(Args &&...args) noexcept
Construct the shared state and initialize the value.
Definition shared_state.hpp:51
auto get(auto const &index) const &noexcept
Get a observer to a sub-object of value accessed by the index operator.
Definition shared_state.hpp:67
auto get() const &noexcept
Get a observer to a member variable of the value.
Definition shared_state.hpp:81