rexlib
0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
rexlib
core
platform
cpp_features.hpp
1
// SPDX-License-Identifier: GPL-3.0-only
2
3
#pragma once
4
5
#include "c_features.h"
6
#include "cpp_version.hpp"
7
8
#if REXLIB_HAS_CPP20
9
# include <version>
10
#endif
11
19
#define REXLIB_HAS_CPP_FEATURE(feature, version) \
20
((__cpp_##feature >= version) || \
21
(REXLIB_HAS_C_FEATURE(cxx_##feature) && REXLIB_CPLUSPLUS >= version))
22
28
#if REXLIB_HAS_CPP_FEATURE(constexpr, 200704L)
29
# define REXLIB_HAS_CONSTEXPR 1
30
#elif REXLIB_HAS_CPP11 && defined(_MSC_VER)
31
# if _MSC_VER >= 1900
32
# define REXLIB_HAS_CONSTEXPR 1
33
# else
34
# define REXLIB_HAS_CONSTEXPR 0
35
# endif
36
#else
37
# define REXLIB_HAS_CONSTEXPR 0
38
#endif
39
40
#define REXLIB_HAS_IF_CONSTEXPR REXLIB_HAS_CPP_FEATURE(if_constexpr, 201606L)
41
#define REXLIB_HAS_LIB_BITOPS REXLIB_HAS_CPP_FEATURE(lib_bitops, 201907)
42
#define REXLIB_HAS_LIB_POW2 REXLIB_HAS_CPP_FEATURE(lib_pow2, 202002)
43
#define REXLIB_HAS_LIB_EXECUTION REXLIB_HAS_CPP_FEATURE(lib_execution, 201603)
44
#define REXLIB_HAS_CONDITIONAL_EXPLICIT REXLIB_HAS_CPP_FEATURE(conditional_explicit, 201806L)
Generated by
1.9.8