C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::flow::single< T > Class Template Reference

Similar to an observable, but always emits either a single value or an error. More...

#include <single.hpp>

Public Types

using output_type = T
 

Public Member Functions

 single (intrusive_ptr< op::base< T > > pimpl) noexcept
 
singleoperator= (std::nullptr_t) noexcept
 
 single (single &&) noexcept=default
 
 single (const single &) noexcept=default
 
singleoperator= (single &&) noexcept=default
 
singleoperator= (const single &) noexcept=default
 
observable< T > as_observable () &&
 
observable< T > as_observable () const &
 
template<class OnSuccess , class OnError >
disposable subscribe (OnSuccess on_success, OnError on_error)
 
bool valid () const noexcept
 
 operator bool () const noexcept
 
bool operator! () const noexcept
 
void swap (single &other)
 

Detailed Description

template<class T>
class caf::flow::single< T >

Similar to an observable, but always emits either a single value or an error.


The documentation for this class was generated from the following files: