diff options
Diffstat (limited to 'ace/Auto_Functor.cpp')
-rw-r--r-- | ace/Auto_Functor.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/ace/Auto_Functor.cpp b/ace/Auto_Functor.cpp deleted file mode 100644 index 91dbad1952b..00000000000 --- a/ace/Auto_Functor.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -#ifndef ACE_AUTO_FUNCTOR_CPP -#define ACE_AUTO_FUNCTOR_CPP - -#include "ace/Auto_Functor.h" - -#if !defined(__ACE_INLINE__) -# include "ace/Auto_Functor.inl" -#endif /* __ACE_INLINE__ */ - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -template<typename X, typename Functor> -ACE_Utils::Auto_Functor<X,Functor>::~Auto_Functor() - ACE_THROW_SPEC (()) -{ - reset(0); -} - -template<typename X, typename Functor> void -ACE_Utils::Auto_Functor<X,Functor>::reset(X * p) - ACE_THROW_SPEC (()) -{ - if(p_ != 0) - { - f_(p_); - } - p_ = p; -} - -template<typename X, typename Functor>void -ACE_Utils::Auto_Functor<X,Functor>::reset(X * p, Functor f) - ACE_THROW_SPEC (()) -{ - reset(p); - f_ = f; -} - -ACE_END_VERSIONED_NAMESPACE_DECL - -#endif /*ACE_AUTO_FUNCTOR_CPP*/ |