MCPcopy Create free account
hub / github.com/MyGUI/mygui / compare

Method compare

MyGUIEngine/include/MyGUI_Any.h:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 }
152
153 bool compare(const std::unique_ptr<Placeholder>& other) const override
154 {
155 if constexpr (HasOperatorEqual<ValueType>::value)
156 return getType() == other->getType() && held == static_cast<Holder*>(other.get())->held;
157 else
158 MYGUI_EXCEPT("Type '" << getType().name() << "' is not comparable");
159 }
160
161 private:
162 ValueType held;

Callers

nothing calls this directly

Calls 3

getTypeMethod · 0.45
getMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected