C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::error_code< class > Class Template Reference

A lightweight wrapper around an error code enum. More...

#include <error_code.hpp>

Public Types

using enum_type = Enum
 
using underlying_type = std::underlying_type_t<Enum>
 

Public Member Functions

constexpr error_code (none_t) noexcept
 
constexpr error_code (enum_type value) noexcept
 
constexpr error_code (const error_code &) noexcept=default
 
constexpr error_codeoperator= (const error_code &) noexcept=default
 
error_codeoperator= (Enum value) noexcept
 
constexpr operator bool () const noexcept
 
constexpr enum_type value () const noexcept
 

Friends

constexpr underlying_type to_integer (error_code x) noexcept
 

Detailed Description

template<class>
class caf::error_code< class >

A lightweight wrapper around an error code enum.


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