MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / operator==

Method operator==

12.19-constevalParmCheck1/main.cpp:70–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 constexpr bool operator==(const string& s) const noexcept
71 {
72 return std::equal(_data, _data + _length, s._data);
73 }
74
75 constexpr char* data() { return _data; }
76 constexpr char* data() const { return _data; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected