DUNE PDELab (git)

Dune::ExceptionStream< E > Class Template Reference

Class for extending a Dune::Exception with a stream interface. More...

#include <dune/common/exceptions.hh>

Friends

template<class T >
requires (requires(std::ostringstream& oss, T t) { oss << t; } and not std::is_integral_v<T>)
ExceptionStreamoperator<< (ExceptionStream &es, const T &t)
 Stream operator for l-value ExceptionStream and lvalue-reference.
 
template<class T >
requires (requires(std::ostringstream& oss, T t) { oss << t; } and not std::is_integral_v<T>)
ExceptionStream operator<< (ExceptionStream &&es, const T &t)
 Stream operator for r-value ExceptionStream and lvalue-reference.
 
template<class T >
requires std::is_integral_v<T>
ExceptionStreamoperator<< (ExceptionStream &es, T t)
 Stream operator for l-value ExceptionStream and integral values. More...
 
template<class T >
requires std::is_integral_v<T>
ExceptionStream operator<< (ExceptionStream &&es, T t)
 Stream operator for r-value ExceptionStream and integral values.
 
ExceptionStreamoperator<< (ExceptionStream &es, std::ostream &(*t)(std::ostream &))
 Stream operator for l-value ExceptionStream and io manipulator.
 
ExceptionStream operator<< (ExceptionStream &&es, std::ostream &(*t)(std::ostream &))
 Stream operator for r-value ExceptionStream and io manipulator.
 

Detailed Description

template<class E>
class Dune::ExceptionStream< E >

Class for extending a Dune::Exception with a stream interface.

Template Parameters
EException base class, should be derived from Dune::Exception.

The class ExceptionStream<E> derives from E and extends it by an operator<<(ExceptionStream<T>,T). The latter is available whenever a corresponding operator<< for std::ostringstream is available. All values fed into the stream will be forwarded to the message stored E.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jan 7, 23:29, 2025)