4.6.0
Freundlich's C++ toolkit
|
The error type.
An error consists of an fcppt::parse::error_variant and a bit telling if the error is fatal. Fatal error are used by parsers such as fcppt::parse::alternative and fcppt::parse::repetition to stop early. This can improve error messages and reduce backtracking time.
Public Types | |
using | variant_type = fcppt::parse::error_variant<Ch> |
Public Member Functions | |
error (variant_type &&, fcppt::parse::is_fatal) | |
bool | is_fatal () const |
variant_type & | get () |
variant_type const & | get () const |
bool | operator== (error const &) const =default |
using fcppt::parse::error< Ch >::variant_type = fcppt::parse::error_variant<Ch> |
fcppt::parse::error< Ch >::error | ( | variant_type && | , |
fcppt::parse::is_fatal | ) |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscarddefault |