1 #ifndef CommonTools_Utils_LazyConstructed_h 2 #define CommonTools_Utils_LazyConstructed_h 27 template <
class WrappedClass,
class... Args>
42 template <std::size_t... ArgIndices>
47 std::optional<WrappedClass>
object_ = std::nullopt;
52 template <
class WrappedClass,
class... Args>
LazyConstructed(Args const &... args)
std::tuple< Args const &... > args_
std::optional< WrappedClass > object_
void evaluateImpl(std::index_sequence< ArgIndices... >)
auto makeLazy(Args &&... args)