8 template <
typename ValueT>
18 template <
typename FuncT>
21 , obtainer_{std::forward<FuncT>(func)}
24 explicit operator bool()
const
26 return value_.has_value();
31 return value_.has_value();
41 std::optional<ValueT>
const&
value() const&
48 std::optional<ValueT>&&
value() &&
52 return std::move(value_);
55 std::optional<ValueT>
value() const&&
62 std::optional<ValueT>&
value() &
70 std::optional<ValueT> value_{};
71 std::function<std::optional<ValueT>()> obtainer_{};
std::optional< ValueT > & value() &
Definition: lazy.hpp:62
std::optional< ValueT > && value() &&
Definition: lazy.hpp:48
Lazy & operator=(Lazy &&)=default
Lazy & operator=(Lazy const &)=default
Lazy(FuncT &&func)
Definition: lazy.hpp:19
Lazy(Lazy const &)=default
bool tryObtainValue() const
Definition: lazy.hpp:34
std::optional< ValueT > value() const &&
Definition: lazy.hpp:55
bool hasValue() const
Definition: lazy.hpp:29
std::optional< ValueT > const & value() const &
Definition: lazy.hpp:41
Definition: file_dialog.hpp:6