Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
has_noexcept_function_type.hpp File Reference

Go to the source code of this file.

Macro Definition Documentation

◆ ARENE_STD_NOEXCEPT_FUNCTION_TYPE

#define ARENE_STD_NOEXCEPT_FUNCTION_TYPE

A platform support query for testing if __cpp_noexcept_function_type is defined.

Usage:

#if ARENE_IS_ON(ARENE_STD_NOEXCEPT_FUNCTION_TYPE)

The value of this query is determined as follows, in order of precedence:

  1. If ARENE_STD_NOEXCEPT_FUNCTION_TYPE has been explicitly defined via a -D flag to the compiler or similar:
    • ARENE_ON if it is truthy
    • ARENE_OFF if it is not truthy.
  1. If __cpp_noexcept_function_type is defined and its value is >=201510L, it is ARENE_ON_BY_DEFAULT
  1. Otherwise, it is ARENE_OFF_BY_DEFAULT

◆ ARENE_STD_NOEXCEPT_FUNCTION_TYPE_I_

#define ARENE_STD_NOEXCEPT_FUNCTION_TYPE_I_   ARENE_OFF_BY_DEFAULT