MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / Construct

Method Construct

oneflow/maybe/optional.h:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75 template<typename... Args, typename U = Type, std::enable_if_t<IsAggregate<U>, int> = 0>
76 void Construct(Args&&... args) {
77 new (value_) Type{std::forward<Args>(args)...};
78 has_ = true;
79 }
80
81 template<typename... Args, typename U = Type, std::enable_if_t<!IsAggregate<U>, int> = 0>
82 void Construct(Args&&... args) {

Callers 1

OptionalFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected