MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / ~optional

Method ~optional

include/dmlc/optional.h:70–74  ·  view source on GitHub ↗

! \brief deconstructor */

Source from the content-addressed store, hash-verified

68 }
69 /*! \brief deconstructor */
70 ~optional() {
71 if (!is_none) {
72 reinterpret_cast<T*>(&val)->~T();
73 }
74 }
75 /*! \brief swap two optional */
76 void swap(optional<T>& other) {
77 std::swap(val, other.val);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected