21 template<
typename GetT>
35 template<
typename GetT, std::enable_if_t<std::is_invocable_v<GetT>,
int> = 0>
36 auto Label(
const std::string & name, GetT get_fn)
42 template<
typename T, std::enable_if_t<!std::is_invocable_v<T>,
int> = 0>
43 auto Label(
const std::string & name, T && value)
auto read(const T &&value)
Definition: traits.h:188
Definition: Observer.h:16
auto Label(const std::string &name, GetT get_fn)
Definition: Label.h:36
Definition: elements.h:105
const std::string & name() const
Definition: elements.h:61
static constexpr auto type
Definition: Label.h:24
LabelImpl(const std::string &name, GetT get_fn)
Definition: Label.h:26
LabelImpl()
Definition: Label.h:29