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

Method destruct

dlib/optional.h:199–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 constexpr void destruct() noexcept(std::is_nothrow_destructible<T>::value)
200 {
201 if (this->active)
202 {
203 this->val.~T();
204 this->active = false;
205 }
206 }
207 };
208
209// ---------------------------------------------------------------------------------------------------

Callers 1

resetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected