Re: Using GUID as the key for std::map
- From: Stephen Howe <sjhoweATdialDOTpipexDOTcom>
- Date: Thu, 19 Nov 2009 20:49:22 +0000
inline bool operator<( const GUID & lhs, const GUID & rhs )
{
return memcmp(&lhs, &rhs, sizeof(GUID) < 0;
}
should do
S
.
- Follow-Ups:
- Re: Using GUID as the key for std::map
- From: Victor Bazarov
- Re: Using GUID as the key for std::map
- References:
- Using GUID as the key for std::map
- From: Faisal
- Re: Using GUID as the key for std::map
- From: Giovanni Dicanio
- Re: Using GUID as the key for std::map
- From: Giovanni Dicanio
- Using GUID as the key for std::map
- Prev by Date: Re: Does the compiler generate better code for references than pointers?
- Next by Date: Re: Using GUID as the key for std::map
- Previous by thread: Re: Using GUID as the key for std::map
- Next by thread: Re: Using GUID as the key for std::map
- Index(es):
Relevant Pages
|