MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / operator<

Function operator<

PathCopyCopy/src/Plugin.cpp:206–213  ·  view source on GitHub ↗

Compares two plugins stored in shared pointers using their unique identifiers. @param p_spPlugin1 First plugin to compare. @param p_spPlugin2 Second plugin to compare. @return true if p_spPlugin1's identifier comes before p_spPlugin2's.

Source from the content-addressed store, hash-verified

204 // @return true if p_spPlugin1's identifier comes before p_spPlugin2's.
205 //
206 bool operator<(const PluginSP& p_spPlugin1,
207 const PluginSP& p_spPlugin2)
208 {
209 assert(p_spPlugin1 != nullptr);
210 assert(p_spPlugin2 != nullptr);
211
212 return ::memcmp(&p_spPlugin1->Id(), &p_spPlugin2->Id(), sizeof(GUID)) < 0;
213 }
214
215 //
216 // Compares a plugin's unique identifier with a GUID.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected