MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / IsFloatTheSameAs

Function IsFloatTheSameAs

3rdparty/flatbuffers/flatbuffers/base.h:470–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468 defined(FLATBUFFERS_HAS_NEW_STRTOD) && (FLATBUFFERS_HAS_NEW_STRTOD > 0)
469// Like `operator==(e, def)` with weak NaN if T=(float|double).
470template<typename T> inline bool IsFloatTheSameAs(T e, T def) {
471 return (e == def) || ((def != def) && (e != e));
472}
473template<> inline bool IsTheSameAs<float>(float e, float def) {
474 return IsFloatTheSameAs(e, def);
475}

Callers 2

IsTheSameAs<float>Function · 0.85
IsTheSameAs<double>Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected