Same as the preceding overload.
Declared in <bslstl_stoptoken.h>
template<class t_ARG>
explicit
stop_callback(
BloombergLP::bslmf::MovableRef<stop_token> token,
t_ARG& arg,
allocator_type const& alloc = allocator_type());
| Name | Description |
|---|---|
| token | stop token whose stop state the callback may register with |
| arg | argument forwarded to construct the stored callable |
| alloc | allocator used when t_CALLBACK is allocator-aware |