cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Configuration macros. More...
Classes | |
struct | info |
Macros | |
#define | CXXOMFORT_CXX_STD (__cplusplus/100) |
Year of the Standard mode found.Example possible values: 2017 (C++17), 2014 (C++14), 2011 (C++11), 2003 (C++03/C++ with TR1), 1997 (C++98), 1 or 0 (for compilers that don't set __cplusplus ) | |
#define | CXXOMFORT_CXX_EMULATION 0 |
Year of the Standard version that is being emulated, if it can be determined.Example possible values: 2017 (C++17), 2014 (C++14), 2011 (C++11 / C++0x), 2007 (C++98 with TR1) or 0 . | |
#define | CXXOMFORT_DATE 20211023UL |
#define | CXXOMFORT_CXX11_CODE(code1, code2) |
#define | CXXOMFORT_CXX14_CODE(code1, code2) |
#define | CXXOMFORT_CXX17_CODE(code1, code2) |
#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 macros that provide information about cxxomfort and the values they can take.
Version information:
CXXOMFORT_DATE
- version / date of library release.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:
CXXOMFORT_ISODATE()
- returns the current date of compilation as a YYYYMMDD
integer.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 liveCXXOMFORT_COMPILER_ID
- identifies the compiler detected.CXXOMFORT_COMPILER_VERSION
- identifies the version of the compiler.See default-ctor and Behaviour Configuration Macros for other related macros.
#define CXXOMFORT_DATE 20211023UL |
Library version and release date as YYYYMMDD
#define CXXOMFORT_CXX11_CODE | ( | code1, | |
code2 | |||
) |
Evaluates to code1 if at least in C++11 mode, code2 otherwise
Referenced by array_ref< CharTy 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 CXXO_NOEXCEPT |
Evaluates to noexcept
when available.
Referenced by cxxomfort::cxxostd::as_ptr_const(), array< T, N >::at(), basic_cstring_view< Ch, ChT >::c_str(), cxxomfort::string::compare(), cxxomfort::cxxostd::data(), and cxxomfort::cxxostd::get().