|
| action (impl_ptr ptr) noexcept |
|
| action (action &&) noexcept=default |
|
| action (const action &) noexcept=default |
|
action & | operator= (action &&) noexcept=default |
|
action & | operator= (const action &) noexcept=default |
|
action & | operator= (std::nullptr_t) noexcept |
|
bool | disposed () const |
|
bool | scheduled () const |
|
void | run () |
| Triggers the action.
|
|
void | dispose () |
| Cancel the action if it has not been invoked yet.
|
|
disposable | as_disposable () &&noexcept |
| Returns a smart pointer to the implementation.
|
|
disposable | as_disposable () const &noexcept |
| Returns a smart pointer to the implementation.
|
|
impl * | ptr () const noexcept |
| Returns a pointer to the implementation.
|
|
impl_ptr && | as_intrusive_ptr () &&noexcept |
| Returns a smart pointer to the implementation.
|
|
impl_ptr | as_intrusive_ptr () const &noexcept |
| Returns a smart pointer to the implementation.
|
|
| operator bool () const noexcept |
|
bool | operator! () const noexcept |
|
A functional interface similar to std::function<void()>
with dispose semantics.