MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / operator<

Method operator<

Telegram/SourceFiles/data/data_audio_msg_id.cpp:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool AudioMsgId::operator<(const AudioMsgId &other) const {
83 if (quintptr(audio()) < quintptr(other.audio())) {
84 return true;
85 } else if (quintptr(other.audio()) < quintptr(audio())) {
86 return false;
87 } else if (contextId() < other.contextId()) {
88 return true;
89 } else if (other.contextId() < contextId()) {
90 return false;
91 }
92 return (externalPlayId() < other.externalPlayId());
93}
94
95bool AudioMsgId::operator==(const AudioMsgId &other) const {
96 return (audio() == other.audio())

Callers

nothing calls this directly

Calls 3

audioMethod · 0.80
externalPlayIdMethod · 0.80
contextIdMethod · 0.45

Tested by

no test coverage detected