Re: Using GUID as the key for std::map

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



inline bool operator<( const GUID & lhs, const GUID & rhs )
{
return memcmp(&lhs, &rhs, sizeof(GUID) < 0;
}

should do

S
.



Relevant Pages