Function object for hashing pointers. More...
#include <Functor_T.h>
Public Member Functions | |
unsigned long | operator() (TYPE t) const |
Simply returns t. |
Function object for hashing pointers.
Definition at line 104 of file Functor_T.h.
unsigned long ACE_Pointer_Hash< TYPE >::operator() | ( | TYPE | t | ) | const [inline] |
Simply returns t.
Definition at line 14 of file Functor_T.inl.
{ #if defined (ACE_WIN64) // The cast below is legit... we only want a hash, and need not convert // the hash back to a pointer. # pragma warning(push) # pragma warning(disable : 4311) /* Truncate pointer to unsigned long */ #endif /* ACE_WIN64 */ return reinterpret_cast<unsigned long> (t); #if defined (ACE_WIN64) # pragma warning(pop) #endif /* ACE_WIN64 */ }