server/dep/ACE_wrappers/ace/Intrusive_List.inl
Neo2003 23c920ca4b [10643] Update the ACE part we use to 5.8.2
Signed-off-by: Neo2003 <Neo.2003@Hotmail.fr>
2010-10-25 20:36:51 +02:00

40 lines
754 B
C++

// -*- C++ -*-
//
// $Id: Intrusive_List.inl 83952 2008-12-02 20:01:24Z johnnyw $
#include <algorithm>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template<class T> ACE_INLINE bool
ACE_Intrusive_List<T>::is_empty (void) const
{
return this->head_ == 0;
}
template<class T> ACE_INLINE bool
ACE_Intrusive_List<T>::empty (void) const
{
return this->is_empty ();
}
template<class T> ACE_INLINE T *
ACE_Intrusive_List<T>::head (void) const
{
return this->head_;
}
template<class T> ACE_INLINE T *
ACE_Intrusive_List<T>::tail (void) const
{
return this->tail_;
}
template<class T> ACE_INLINE void
ACE_Intrusive_List<T>::swap(ACE_Intrusive_List<T> & rhs)
{
std::swap(head_, rhs.head_);
std::swap(tail_, rhs.tail_);
}
ACE_END_VERSIONED_NAMESPACE_DECL