mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 19:13:49 +00:00
Directory Structure [step 1]: moving files
working on #672 NOTE: This commit can't be compiled!!
This commit is contained in:
37
deps/acelite/ace/Auto_Functor.cpp
vendored
Normal file
37
deps/acelite/ace/Auto_Functor.cpp
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
#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()
|
||||
{
|
||||
reset(0);
|
||||
}
|
||||
|
||||
template<typename X, typename Functor> void
|
||||
ACE_Utils::Auto_Functor<X,Functor>::reset(X * p)
|
||||
{
|
||||
if(p_ != 0)
|
||||
{
|
||||
f_(p_);
|
||||
}
|
||||
p_ = p;
|
||||
}
|
||||
|
||||
template<typename X, typename Functor>void
|
||||
ACE_Utils::Auto_Functor<X,Functor>::reset(X * p, Functor f)
|
||||
{
|
||||
reset(p);
|
||||
f_ = f;
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
#endif /*ACE_AUTO_FUNCTOR_CPP*/
|
||||
Reference in New Issue
Block a user