MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / operator==

Method operator==

include/dmlc/optional.h:112–115  ·  view source on GitHub ↗

! \brief equal comparison */

Source from the content-addressed store, hash-verified

110 }
111 /*! \brief equal comparison */
112 bool operator==(const optional<T>& other) const {
113 return this->is_none == other.is_none &&
114 (this->is_none == true || this->value() == other.value());
115 }
116 /*! \brief return the holded value.
117 * throws std::logic_error if holding no value
118 */

Callers

nothing calls this directly

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected