Blame view

3rdparty/boost_1_81_0/boost/signals2/variadic_signal.hpp 1.46 KB
0b6a182c   Hu Chunming   添加无鉴权注册和注销
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  /*
    A variadic implementation of variadic boost::signals2::signal, used when variadic
    template support is detected in the compiler.
  
    Author: Frank Mori Hess <fmhess@users.sourceforge.net>
    Begin: 2009-05-26
  */
  // Copyright Frank Mori Hess 2009
  // Use, modification and
  // distribution is subject to the Boost Software License, Version
  // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  // http://www.boost.org/LICENSE_1_0.txt)
  
  // For more information, see http://www.boost.org
  
  #ifndef BOOST_SIGNALS2_VARIADIC_SIGNAL_HPP
  #define BOOST_SIGNALS2_VARIADIC_SIGNAL_HPP
  
  #include <boost/core/enable_if.hpp>
  #include <boost/preprocessor/control/expr_if.hpp>
  #include <boost/signals2/detail/variadic_arg_type.hpp>
  #include <boost/signals2/detail/variadic_slot_invoker.hpp>
  #include <boost/smart_ptr/make_shared.hpp>
  #include <boost/type_traits/function_traits.hpp>
  #include <boost/type_traits/is_void.hpp> 
  
  namespace boost
  {
    namespace signals2
    {
      namespace detail
      {
        template<typename Signature> class variadic_extended_signature;
        // partial template specialization
        template<typename R, typename ... Args>
          class variadic_extended_signature<R (Args...)>
        {
        public:
          typedef boost::function<R (const boost::signals2::connection &, Args...)> function_type;
        };
      } // namespace detail
    } // namespace signals2
  } // namespace boost
  
  #include <boost/signals2/detail/signal_template.hpp>
  
  #endif // BOOST_SIGNALS2_VARIADIC_SIGNAL_HPP