File indexing completed on 2025-01-18 09:51:40
0001
0002
0003
0004
0005
0006
0007
0008
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 }
0029 }
0030 }
0031
0032 #endif