diff options
Diffstat (limited to 'ACE/ace/Intrusive_List.inl')
-rw-r--r-- | ACE/ace/Intrusive_List.inl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ACE/ace/Intrusive_List.inl b/ACE/ace/Intrusive_List.inl new file mode 100644 index 00000000000..ce38cfd0186 --- /dev/null +++ b/ACE/ace/Intrusive_List.inl @@ -0,0 +1,34 @@ +// -*- C++ -*- +// +// $Id$ + +#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 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 |