MCPcopy Create free account
hub / github.com/davisking/dlib / ~optional_storage

Method ~optional_storage

dlib/optional.h:145–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 {}
144
145 ~optional_storage() noexcept(std::is_nothrow_destructible<T>::value)
146 {
147 if (active)
148 val.~T();
149 }
150
151 struct empty{};
152 union {T val; empty e;};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected