CAF  0.17.3
Public Types | Public Member Functions | List of all members
caf::error_code< Enum > 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_type >
 

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
 

Detailed Description

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

A lightweight wrapper around an error code enum.


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