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.
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected