mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
Applied dep and realm updates
This commit is contained in:
parent
12257a5bc2
commit
5260602e28
2020 changed files with 39571 additions and 173090 deletions
39
dep/acelite/ace/Auto_Functor.cpp
Normal file
39
dep/acelite/ace/Auto_Functor.cpp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
// $Id: Auto_Functor.cpp 80826 2008-03-04 14:51:23Z wotte $
|
||||
|
||||
#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*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue