stlab 3.0.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
Loading...
Searching...
No Matches
stlab::sender< T, enable_if_copyable< T > > Class Template Reference

Sending end of a CSP channel (copyable T). More...

#include <channel.hpp>

Public Member Functions

 sender (const sender &x)
 sender (sender &&) noexcept=default
auto operator= (const sender &x) -> sender &
auto operator= (sender &&) noexcept -> sender &=default
void swap (sender &x) noexcept
void close ()
 Closes this side of the channel (releases the weak link to the shared process).
template<typename... A>
void operator() (A &&... args) const
 Sends a value (or exception) into the channel.
auto free_buffer () const -> std::optional< std::size_t >
 Remaining capacity in the downstream process buffer, if known.

Detailed Description

template<typename T>
class stlab::sender< T, enable_if_copyable< T > >

Sending end of a CSP channel (copyable T).


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