Public Member Functions

ACE_Pointer_Hash< TYPE > Class Template Reference

Function object for hashing pointers. More...

#include <Functor_T.h>

List of all members.

Public Member Functions

unsigned long operator() (TYPE t) const
 Simply returns t.

Detailed Description

template<class TYPE>
class ACE_Pointer_Hash< TYPE >

Function object for hashing pointers.

Definition at line 104 of file Functor_T.h.


Member Function Documentation

template<class TYPE >
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 */
}


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines