cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Classes | Macros
Cxxomfort Macros

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...
 

Detailed Description

Configuration macros.

This section describes macros that provide information about cxxomfort and the values they can take.

Version information:

Informative macros:

See default-ctor and Behaviour Configuration Macros for other related macros.

Macro Definition Documentation

◆ CXXOMFORT_DATE

#define CXXOMFORT_DATE   20211023UL

Library version and release date as YYYYMMDD

◆ CXXOMFORT_CXX11_CODE

#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().

◆ CXXOMFORT_CXX14_CODE

#define CXXOMFORT_CXX14_CODE (   code1,
  code2 
)

Evaluates to code1 if at least in C++14 mode, code2 otherwise

◆ CXXOMFORT_CXX17_CODE

#define CXXOMFORT_CXX17_CODE (   code1,
  code2 
)

Evaluates to code1 if at least in C++17 mode, code2 otherwise

◆ CXXO_NOEXCEPT

#define CXXO_NOEXCEPT

Evaluates to noexcept when available.

Note
Evaluates to nothing when exceptions are disabled.

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().