|
Zth (libzth)
|
The future returned by a fiber. More...
#include <async.h>
Public Types | |
| typedef impl::fiber_future_helper< T >::type | future_type |
| typedef future_type | base |
| typedef future_type::type | return_type |
Public Types inherited from zth::SharedReference< T > | |
| typedef SharedPointer< T > | SharedPointer_type |
| typedef SharedPointer_type::type | type |
Public Member Functions | |
| template<typename F > | |
| fiber_future (F &f) noexcept | |
| template<typename F > | |
| fiber_future (F const &f) noexcept | |
Public Member Functions inherited from zth::SharedReference< T > | |
| constexpr | SharedReference () noexcept |
| constexpr | SharedReference (type &object) noexcept |
| constexpr | SharedReference (SharedReference const &p) noexcept |
| constexpr | SharedReference (SharedPointer_type const &p) noexcept |
| ~SharedReference () noexcept=default | |
| void | reset () |
| SharedReference & | operator= (SharedReference const &p) noexcept |
| constexpr | SharedReference (SharedPointer_type &&p) noexcept |
| constexpr | SharedReference (SharedReference &&p) noexcept |
| constexpr SharedReference & | operator= (SharedReference &&p) noexcept |
| constexpr | operator SharedPointer< type > () &&noexcept |
| constexpr | operator SharedPointer_type () &noexcept |
| constexpr bool | valid () const noexcept |
Public Member Functions inherited from zth::SharedReferenceOps< SharedReference< T >, T > | |
| constexpr T & | get () const noexcept |
| constexpr | operator T& () const noexcept |
Additional Inherited Members | |
Public Attributes inherited from zth::SharedReferenceOps< SharedReference< T >, T > | |
| constexpr decltype(**static_cast< T * >(nullptr) | operator* )() const |
| constexpr decltype(static_cast< T * >(nullptr) ->operator->()) | operator-> () const noexcept |
The future returned by a fiber.
When a fiber, created with zth::fiber() or zth::factory(), is passed to this class, a future is automatically assigned to the fiber result.
| typedef future_type zth::fiber_future< T >::base |
| typedef impl::fiber_future_helper<T>::type zth::fiber_future< T >::future_type |
| typedef future_type::type zth::fiber_future< T >::return_type |
|
inlinenoexcept |
|
inlinenoexcept |