Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:40

0001 // Copyright Frank Mori Hess 2007-2009
0002 //
0003 // Use, modification and
0004 // distribution is subject to the Boost Software License, Version
0005 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 // For more information, see http://www.boost.org
0009 
0010 #ifndef BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP
0011 #define BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP
0012 
0013 #include <boost/signals2/slot_base.hpp>
0014 
0015 namespace boost
0016 {
0017   namespace signals2
0018   {
0019     namespace detail
0020     {
0021       template<typename ResultSlot, typename SlotIn, typename SlotFunction>
0022         ResultSlot replace_slot_function(const SlotIn &slot_in, const SlotFunction &fun)
0023       {
0024         ResultSlot slot(fun);
0025         slot.track(slot_in);
0026         return slot;
0027       }
0028     } // namespace detail
0029   } // namespace signals2
0030 } // namespace boost
0031 
0032 #endif // BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP