Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
appbase::drop_exceptions Struct Reference

#include <channel.hpp>

Public Types

using result_type = void
 

Public Member Functions

 drop_exceptions ()=default
 
template<typename InputIterator >
result_type operator() (InputIterator first, InputIterator last)
 

Detailed Description

A basic DispatchPolicy that will catch and drop any exceptions thrown during the dispatch of messages on a channel

Definition at line 19 of file channel.hpp.

Member Typedef Documentation

◆ result_type

Definition at line 21 of file channel.hpp.

Constructor & Destructor Documentation

◆ drop_exceptions()

appbase::drop_exceptions::drop_exceptions ( )
default

Member Function Documentation

◆ operator()()

template<typename InputIterator >
result_type appbase::drop_exceptions::operator() ( InputIterator first,
InputIterator last )
inline

Definition at line 24 of file channel.hpp.

24 {
25 while (first != last) {
26 try {
27 *first;
28 } catch (...) {
29 // drop
30 }
31 ++first;
32 }
33 }

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