|
RESTinio
|
Detection of compiler version and absence of various features. More...
#include <utility>Go to the source code of this file.
Classes | |
| struct | restinio::static_if_details::static_if_impl< true > |
| struct | restinio::static_if_details::static_if_impl< false > |
Namespaces | |
| namespace | restinio |
| namespace | restinio::static_if_details |
Macros | |
| #define | RESTINIO_NODISCARD |
| #define | RESTINIO_FALLTHROUGH |
| #define | RESTINIO_ENSURE_NOEXCEPT_CALL(expr) |
| A wrapper around static_assert for checking that an expression is noexcept and execution of that expression. | |
| #define | RESTINIO_STATIC_ASSERT_NOEXCEPT(expr) static_assert(noexcept(expr), #expr " is expected to be noexcept" ) |
| A wrapper around static_assert for checking that an expression is noexcept. | |
| #define | RESTINIO_STATIC_ASSERT_NOT_NOEXCEPT(expr) static_assert(!noexcept(expr), #expr " is not expected to be noexcept" ) |
| A wrapper around static_assert for checking that an expression is not noexcept. | |
Functions | |
| template<bool Condition, typename If_Part , typename Else_Part > | |
| decltype(auto) | restinio::static_if_else (If_Part &&if_part, Else_Part &&else_part) |
| An emulation of if constexpr for C++14. | |
Detection of compiler version and absence of various features.
Definition in file compiler_features.hpp.
| #define RESTINIO_ENSURE_NOEXCEPT_CALL | ( | expr | ) |
A wrapper around static_assert for checking that an expression is noexcept and execution of that expression.
Usage example:
Definition at line 60 of file compiler_features.hpp.
| #define RESTINIO_FALLTHROUGH |
Definition at line 37 of file compiler_features.hpp.
| #define RESTINIO_NODISCARD |
Definition at line 33 of file compiler_features.hpp.
| #define RESTINIO_STATIC_ASSERT_NOEXCEPT | ( | expr | ) | static_assert(noexcept(expr), #expr " is expected to be noexcept" ) |
A wrapper around static_assert for checking that an expression is noexcept.
Usage example:
Definition at line 89 of file compiler_features.hpp.
| #define RESTINIO_STATIC_ASSERT_NOT_NOEXCEPT | ( | expr | ) | static_assert(!noexcept(expr), #expr " is not expected to be noexcept" ) |
A wrapper around static_assert for checking that an expression is not noexcept.
Usage example:
Definition at line 116 of file compiler_features.hpp.