CGAL 6.2 - STL Extensions for CGAL

Loading...
Searching...
No Matches
List of all members | Public Member Functions
CGAL::Exception_basic_ostream< CharT, Traits > Class Template Reference

`#include <CGAL/Exception_ostream.h>`

## Definition

template<typename CharT = char, typename Traits = std::char_traits<CharT>>
class CGAL::Exception_basic_ostream< CharT, Traits >

A stream-like object that throws an exception with its buffer content when destroyed.

Usage:

{
CGAL::Exception_basic_ostream os;
os << "Error: " << value;
} // throws std::runtime_error with the message when os goes out of scope
CGAL::Exception_basic_ostream
A stream-like object that throws an exception with its buffer content when destroyed.
Definition: Exception_ostream.h:52

Note
  This class is move-only.

Template Parameters

  CharT | Character type (default: `char`)
  Traits | Character traits (default: `std::char_traits<CharT>`)

## Public Member Functions
| Exception_basic_ostream (const char *file=__FILE__, int line=__LINE__)
| Exception_basic_ostream (Exception_basic_ostream &&)=default
Exception_basic_ostream & | operator= (Exception_basic_ostream &&)=default
| ~Exception_basic_ostream () noexcept(false)
template<typename T >
Exception_basic_ostream & | operator<< (T &&value)
Exception_basic_ostream & | operator<< (std::basic_ostream< CharT, Traits > &(*manip)(std::basic_ostream< CharT, Traits > &))
Exception_basic_ostream & | operator<< (std::basic_ios< CharT, Traits > &(*manip)(std::basic_ios< CharT, Traits > &))
Exception_basic_ostream & | operator<< (std::ios_base &(*manip)(std::ios_base &))