Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / Auto_Functor.cpp
blob9d0dc79aa52a60a5cf26467550ff68aa4830f2a7
1 // $Id: Auto_Functor.cpp 80826 2008-03-04 14:51:23Z wotte $
3 #ifndef ACE_AUTO_FUNCTOR_CPP
4 #define ACE_AUTO_FUNCTOR_CPP
6 #include "ace/Auto_Functor.h"
8 #if !defined(__ACE_INLINE__)
9 # include "ace/Auto_Functor.inl"
10 #endif /* __ACE_INLINE__ */
12 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
14 template<typename X, typename Functor>
15 ACE_Utils::Auto_Functor<X,Functor>::~Auto_Functor()
17 reset(0);
20 template<typename X, typename Functor> void
21 ACE_Utils::Auto_Functor<X,Functor>::reset(X * p)
23 if(p_ != 0)
25 f_(p_);
27 p_ = p;
30 template<typename X, typename Functor>void
31 ACE_Utils::Auto_Functor<X,Functor>::reset(X * p, Functor f)
33 reset(p);
34 f_ = f;
37 ACE_END_VERSIONED_NAMESPACE_DECL
39 #endif /*ACE_AUTO_FUNCTOR_CPP*/