10 #include <type_traits> 16 template <
typename... A>
17 explicit Box(A &&... args) :
t_{std::forward<A>(args)...} {}
21 if constexpr (!std::is_pod_v<T>) box.t_ = std::nullopt;
29 t_ = std::move(*box.t_);
30 if constexpr (!std::is_pod_v<T>) box.t_ = std::nullopt;
53 #endif // KAGOME_BOX_HPP
Box & operator=(Box &val)
Box & operator=(Box &&box)
T const & value() const &