Vcsn
2.4
Be Rational
|
#include <sstream>
#include <stdexcept>
#include <utility>
#include <vcsn/misc/attributes.hh>
#include <vcsn/misc/escape.hh>
#include <vcsn/misc/to-string.hh>
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... | |
#define VCSN_REQUIRE | ( | Cond, | |
... | |||
) |
A macro similar to require.
Its point is to avoid the cost of the evaluation of the variadic arguments.
Definition at line 111 of file raise.hh.
Referenced by vcsn::edit_automaton< Aut >::add_entry(), vcsn::set_alphabet< L >::add_letter(), vcsn::conv(), vcsn::detail::min_plus_impl< zmin_impl, int >::conv(), vcsn::oneset::conv(), vcsn::letterset< GenSet >::conv(), vcsn::wordset< GenSet >::conv(), vcsn::rat::expansionset< ExpSet >::tuple_impl< Expansions >::denormalize_tape(), vcsn::divkbaseb(), vcsn::eat(), vcsn::dyn::detail::Registry< Fun >::get(), vcsn::get_file_contents(), vcsn::detail::genset_labelset< GenSet >::get_letter(), vcsn::set_alphabet< L >::get_word(), vcsn::rat::expressionset_impl< Context >::letter_class_(), vcsn::detail::lexical_cast(), vcsn::quotkbaseb(), and vcsn::rat::expansionset< expressionset_t >::transpose().