MeshLib
 
Loading...
Searching...
No Matches
MRExpected.h File Reference
#include "MRMeshFwd.h"
#include <version>
#include <tl/expected.hpp>
#include <string>

Go to the source code of this file.

Namespaces

namespace  MR
 

Typedefs

template<class T , class E = std::string>
using MR::Expected = tl::expected<T, E>
 
using MR::VoidOrErrStr = Expected<void, std::string>
 return type for a void function that can produce an error string
 

Functions

template<class E >
auto MR::unexpected (E &&e)
 
std::string MR::stringOperationCanceled ()
 Common operation canceled line for all.
 
auto MR::unexpectedOperationCanceled ()
 Returns Expected error with stringOperationCanceled()