C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | 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 >
 

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 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: