Restore build on FreeBSD.
[getmangos.git] / dep / ACE_wrappers / ace / Functor_T.inl
blob35cfed5b798cbcd0e52232d8e283b9085b8f90a8
1 // -*- C++ -*-
2 //
3 // $Id: Functor_T.inl 80826 2008-03-04 14:51:23Z wotte $
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 template <class TYPE> ACE_INLINE unsigned long
8 ACE_Hash<TYPE>::operator () (const TYPE &t) const
10   return t.hash ();
13 template <class TYPE> ACE_INLINE unsigned long
14 ACE_Pointer_Hash<TYPE>::operator () (TYPE t) const
16 #if defined (ACE_WIN64)
17   // The cast below is legit... we only want a hash, and need not convert
18   // the hash back to a pointer.
19 #  pragma warning(push)
20 #  pragma warning(disable : 4311)   /* Truncate pointer to unsigned long */
21 #endif /* ACE_WIN64 */
22   return reinterpret_cast<unsigned long> (t);
23 #if defined (ACE_WIN64)
24 #  pragma warning(pop)
25 #endif /* ACE_WIN64 */
28 template <class TYPE> ACE_INLINE bool
29 ACE_Equal_To<TYPE>::operator () (const TYPE &lhs,
30                                  const TYPE &rhs) const
32   return lhs == rhs;
35 template <class TYPE> ACE_INLINE bool
36 ACE_Less_Than<TYPE>::operator () (const TYPE &lhs,
37                                   const TYPE &rhs) const
39   return lhs < rhs;
42 ACE_END_VERSIONED_NAMESPACE_DECL