Vcsn  2.4
Be Rational
raise.hh File Reference
#include <sstream>
#include <stdexcept>
#include <utility>
#include <vcsn/misc/attributes.hh>
#include <vcsn/misc/escape.hh>
#include <vcsn/misc/to-string.hh>
Include dependency graph for raise.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vcsn::detail::pass
 Ignore its arguments. More...
 

Namespaces

 vcsn
 
 vcsn::detail
 

Macros

#define VCSN_REQUIRE(Cond, ...)
 A macro similar to require. More...
 

Functions

template<typename T >
void vcsn::detail::print_ (std::ostream &o, const T &arg, long)
 Serialize arg into o. More...
 
void vcsn::detail::print_ (std::ostream &o, std::istream &is, long)
 When printing an istream, consider that we are trying to help the user by showing what's wrong with the input. More...
 
void vcsn::detail::print_ (std::ostream &o, std::istringstream &is, long)
 Disambiguation: both 'istream&' and 'const T&' are elligible. More...
 
template<typename T >
auto vcsn::detail::print_ (std::ostream &o, const T &arg, int) -> decltype(arg.print_set(o), void())
 Serialize arg, which supports print_set, into o. More...
 
template<typename... Args>
ATTRIBUTE_NORETURN void vcsn::raise (Args &&...args)
 Raise a runtime_error with the concatenation of args as message. More...
 
template<typename Bool , typename... Args>
void vcsn::require (Bool b, Args &&...args)
 If b is not verified, raise an error with args as message. More...
 
template<typename WeightSet >
ATTRIBUTE_NORETURN void vcsn::raise_not_starrable (const WeightSet &ws, const typename WeightSet::value_t &w)
 This value is not starrable. More...
 

Macro Definition Documentation