...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Construct a copy of a different cancellation slot wrapper type, but specify a different cancellation slot.
template< typename U, typename OtherCancellationSlot> cancellation_slot_binder( const cancellation_slot_type & s, const cancellation_slot_binder< U, OtherCancellationSlot > & other, constraint_t< is_constructible< T, U >::value > = 0);
This constructor is only valid if the type T
is constructible from type U
.