annotate DEPENDENCIES/generic/include/boost/signals2/detail/replace_slot_function.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Copyright Frank Mori Hess 2007-2009
Chris@16 2 //
Chris@16 3 // Use, modification and
Chris@16 4 // distribution is subject to the Boost Software License, Version
Chris@16 5 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 6 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7
Chris@16 8 // For more information, see http://www.boost.org
Chris@16 9
Chris@16 10 #ifndef BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP
Chris@16 11 #define BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP
Chris@16 12
Chris@16 13 #include <boost/signals2/slot_base.hpp>
Chris@16 14
Chris@16 15 namespace boost
Chris@16 16 {
Chris@16 17 namespace signals2
Chris@16 18 {
Chris@16 19 namespace detail
Chris@16 20 {
Chris@16 21 template<typename ResultSlot, typename SlotIn, typename SlotFunction>
Chris@16 22 ResultSlot replace_slot_function(const SlotIn &slot_in, const SlotFunction &fun)
Chris@16 23 {
Chris@16 24 ResultSlot slot(fun);
Chris@16 25 slot.track(slot_in);
Chris@16 26 return slot;
Chris@16 27 }
Chris@16 28 } // namespace detail
Chris@16 29 } // namespace signals2
Chris@16 30 } // namespace boost
Chris@16 31
Chris@16 32 #endif // BOOST_SIGNALS2_DETAIL_REPLACE_SLOT_FUNCTION_HPP