MGIS
Loading...
Searching...
No Matches
mgis::InvalidResult Struct Reference

a class convertible to many values used as invalid result. More...

#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/InvalidResult.hxx>

Public Member Functions

template<typename Type >
requires (internal::InvalidValueTraits<Type>::isSpecialized)
constexpr operator Type () &&noexcept
 conversion to the invalid value to any type for which a specialisation of the InvalidValue class exists
 
constexpr operator std::optional< bool > () &&noexcept
 implicit conversion to std::optional<bool>
 

Detailed Description

a class convertible to many values used as invalid result.

This class has been designed to make the MANTA_TRY* macros compatible with any function/methods respecting the guideline of error handling.

Internally, these macros can return an object of the InvalidResult type when an error is detected, which will be automatically converted to the return type of the current function/method.


The documentation for this struct was generated from the following files: