cxxomfort
rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Configuration macros. More...
Classes | |
struct | info |
Macros | |
#define | CXXOMFORT_CXX11_CODE(code1, code2) |
#define | CXXOMFORT_CXX14_CODE(code1, code2) |
#define | CXXOMFORT_CXX17_CODE(code1, code2) |
#define | CXXOMFORT_EXCEPTIONS_DISABLED _undetermined |
Evaluates to 1 if exceptions are disabled. More... | |
#define | CXXO_CONSTEXPR constexpr |
Evaluates to constexpr when it's available. | |
#define | CXXO_CONSTEXPR |
Evaluates to constexpr when it's available. | |
#define | CXXO_CONSTEXPR14 constexpr |
Evaluates to constexpr when it's available in its C++14 "relaxed" form. | |
#define | CXXO_CONSTEXPR14 |
Evaluates to constexpr when it's available in its C++14 "relaxed" form. | |
#define | CXXO_NOEXCEPT |
Evaluates to noexcept when available. More... | |
Configuration macros.
This section describes the various values that provide information about cxxomfort and the values they can take.
Version information:
CXXOMFORT_DATE
- date of release.CXXOMFORT_VERSION
- version number (to be deprecated).CXXOMFORT_CXX_STD
- the year of the C++ Standard running in the compiler.CXXOMFORT_CXX_EMULATION
- the year of the standard emulated by the compiler.Informative macros:
CXXO_STDTR1_NAME()
- has the name of the namespace where TR1 names live.CXXO_STDTR1_OPEN()
, CXXO_STDTR1_CLOSE()
- open and close the namespace where TR1 things liveSee Code Generation and TYPEDEF charn_t for other related macros.
#define CXXOMFORT_CXX11_CODE | ( | code1, | |
code2 | |||
) |
Evaluates to code1 if at least in C++11 mode, code2 otherwise
Referenced by array_ref< Ch const >::without_back_n().
#define CXXOMFORT_CXX14_CODE | ( | code1, | |
code2 | |||
) |
Evaluates to code1 if at least in C++14 mode, code2 otherwise
#define CXXOMFORT_CXX17_CODE | ( | code1, | |
code2 | |||
) |
Evaluates to code1 if at least in C++17 mode, code2 otherwise
#define CXXOMFORT_EXCEPTIONS_DISABLED _undetermined |
Evaluates to 1
if exceptions are disabled.
#define CXXO_NOEXCEPT |
Evaluates to noexcept
when available.
Referenced by cxxomfort::cxxostd::as_ptr_const(), basic_cstring_view< Ch, ChT >::c_str(), cxxomfort::cxxostd::data(), cxxomfort::cxxostd::get(), cxxomfort::extras::observer_ptr::make_observer(), and observer_ptr< W >::observer_ptr().