MCPcopy Create free account
hub / github.com/davisking/dlib / construct

Method construct

dlib/optional.h:181–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180 template <class... U>
181 constexpr void construct(U&&... u) noexcept(std::is_nothrow_constructible<T,U...>::value)
182 {
183 new (std::addressof(this->val)) T(std::forward<U>(u)...);
184 this->active = true;
185 }
186
187 template<class Optional>
188 constexpr void assign(Optional&& rhs) noexcept(std::is_nothrow_constructible<T,Optional>::value &&

Callers 4

optional_copyMethod · 0.45
optional_moveMethod · 0.45
optionalMethod · 0.45
optionalClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected