Stax
Programming language
Loading...
Searching...
No Matches
stax::result::Err Class Reference

#include <result.hpp>

Public Member Functions

template<IsErrorCode T>
 Err (const T &ec, const std::optional< std::string > &msg={})
 
 Err (const std::error_code &ec, const std::optional< std::string > &msg={})
 
template<IsErrorCode T>
auto operator== (const T &ec) const
 
template<IsErrorCode T>
auto operator!= (const T &ec) const
 
auto Code ()
 
auto message ()
 

Constructor & Destructor Documentation

◆ Err() [1/2]

template<IsErrorCode T>
stax::result::Err::Err ( const T & ec,
const std::optional< std::string > & msg = {} )
inline

◆ Err() [2/2]

stax::result::Err::Err ( const std::error_code & ec,
const std::optional< std::string > & msg = {} )
inline

Member Function Documentation

◆ Code()

auto stax::result::Err::Code ( )
inline

◆ message()

auto stax::result::Err::message ( )
inline

◆ operator!=()

template<IsErrorCode T>
auto stax::result::Err::operator!= ( const T & ec) const
inline

◆ operator==()

template<IsErrorCode T>
auto stax::result::Err::operator== ( const T & ec) const
inline

The documentation for this class was generated from the following file: