codex
Loading...
Searching...
No Matches
N Namespace Reference

Classes

struct  errc_for_f
 
struct  errc_for_f< f >
 
struct  errc_for_f< g >
 

Typedefs

template<errc ... errs>
using errc_list = std::tuple<std::integral_constant<errc, errs>...>
 
template<auto f>
using errc_for_f_t = typename errc_for_f<f>::type
 

Enumerations

enum class  errc { ERR1 = 1 , ERR2 , ERR3 }
 
enum class  log_level { ERROR , WARNING , INFO , DEBUG }
 

Functions

errc f ()
 
errc g ()
 
template<typename L , errc e>
consteval bool errc_in_list ()
 
template<auto f, errc e>
consteval bool f_returns_errc ()
 
log_level calc_log_level ()
 
template<log_level l, typename ... Ts>
void log (const char *msg, Ts &&...args)
 

Variables

static constexpr auto maximum_log_level = log_level::ERROR
 
static auto actual_log_level = calc_log_level()
 

Typedef Documentation

◆ errc_for_f_t

template<auto f>
using N::errc_for_f_t = typename errc_for_f<f>::type

◆ errc_list

template<errc ... errs>
using N::errc_list = std::tuple<std::integral_constant<errc, errs>...>

Enumeration Type Documentation

◆ errc

enum class N::errc
strong
Enumerator
ERR1 
ERR2 
ERR3 

◆ log_level

enum class N::log_level
strong
Enumerator
ERROR 
WARNING 
INFO 
DEBUG 

Function Documentation

◆ calc_log_level()

log_level N::calc_log_level ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ errc_in_list()

template<typename L , errc e>
bool N::errc_in_list ( )
consteval
Here is the call graph for this function:
Here is the caller graph for this function:

◆ f()

errc N::f ( )

◆ f_returns_errc()

template<auto f, errc e>
bool N::f_returns_errc ( )
consteval
Here is the call graph for this function:
Here is the caller graph for this function:

◆ g()

errc N::g ( )

◆ log()

template<log_level l, typename ... Ts>
void N::log ( const char * msg,
Ts &&... args )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ actual_log_level

auto N::actual_log_level = calc_log_level()
static

◆ maximum_log_level

auto N::maximum_log_level = log_level::ERROR
staticconstexpr