cppx-core
Classes | Namespaces | Functions
hopefully_and_fail.hpp File Reference
#include <cppx-core/failure-handling/Abstract_source_location.hpp>
#include <cppx-core/language/syntax/all.hpp>
#include <cppx-core/language/types/Truth.hpp>
#include <stdexcept>
#include <exception>
#include <string>
Include dependency graph for hopefully_and_fail.hpp:

Go to the source code of this file.

Classes

struct  cppx::hf::Success
 
struct  cppx::hf::Failure
 

Namespaces

 cppx
 
 cppx::hopefully_and_fail
 
 cppx::hf
 

Functions

 cppx::hf::CPPX_USE_STD (current_exception, runtime_error, string, throw_with_nested)
 
auto cppx::hf::hopefully (const Truth condition) -> Truth
 
template<class X = runtime_error>
auto cppx::hf::fail (const string &message) -> Truth
 
template<class X = runtime_error>
auto cppx::hf::fail (const string &message, const Abstract_source_location &throw_point) -> Truth
 
template<class Value >
auto cppx::hf::operator>> (const Value &v, Failure) -> Truth