#include <Root.hh>
Definition at line 20 of file Root.hh.
◆ Root()
Definition at line 34 of file Root.hh.
36 {}
static TRet error_guard(TValue ret, TValue error_value)
◆ error_guard()
template<typename TRet = bool, typename TValue = int>
static TRet error_guard |
( |
TValue |
ret, |
|
|
TValue |
error_value |
|
) |
| |
|
inlinestaticprotected |
Definition at line 39 of file Root.hh.
40 {
41 static constexpr bool ret_is_bool = std::is_same_v<TRet, bool>;
42
44 static_assert (std::is_same_v<TRet, TValue>, "Both TRet and TValue must be the same type unless TValue is 'bool'");
45 }
46
49 return true;
50 } else {
51 return ret;
52 }
53 }
54
55#if defined (NCPP_EXCEPTIONS_PLEASE)
56 throw call_error ("Call returned an error value");
57#else
59 return false;
60 } else {
61 return ret;
62 }
63#endif
64 }
◆ error_guard_cond()
Definition at line 67 of file Root.hh.
68 {
69 static constexpr bool ret_is_bool = std::is_same_v<TRet, bool>;
70
72 static_assert (std::is_same_v<TRet, TValue>, "Both TRet and TValue must be the same type unless TValue is 'bool'");
73 }
74
77 return true;
78 } else {
79 return ret;
80 }
81 }
82
83#if defined (NCPP_EXCEPTIONS_PLEASE)
84 throw call_error ("Call returned an error value");
85#else
87 return false;
88 } else {
89 return ret;
90 }
91#endif
92 }
◆ get_notcurses()
◆ get_notcurses_cpp()
◆ is_notcurses_stopped()
bool is_notcurses_stopped |
( |
| ) |
const |
|
protectednoexcept |
◆ ncpp_invalid_state_message
The documentation for this class was generated from the following file:
- /home/dank/src/dankamongmen/notcurses/include/ncpp/Root.hh