TRLC Platform Library
1.0.0
Header-only C++ library for compile-time platform detection and abstraction
|
C++ standard information structure. More...
#include <trlc/platform/cpp_standard.hpp>
Static Public Member Functions | |
static bool | isAtLeast (CppStandard min_standard) const |
Checks if the current standard is at least the specified version. More... | |
static bool | supportsFeature (const char *feature_name) const |
Checks if a specific language feature is supported. More... | |
Public Attributes | |
CppStandard | standard |
Detected C++ standard. More... | |
long | version_macro |
Value of __cplusplus macro. More... | |
const char * | standard_name |
Human-readable standard name. More... | |
C++ standard information structure.
Contains comprehensive information about the detected C++ standard, including version, macro value, and feature support capabilities.
Definition at line 39 of file cpp_standard.hpp.
|
inlinestatic |
Checks if the current standard is at least the specified version.
min_standard | Minimum required C++ standard |
Definition at line 49 of file cpp_standard.hpp.
|
inlinestatic |
Checks if a specific language feature is supported.
feature_name | Name of the feature to check |
Definition at line 58 of file cpp_standard.hpp.
CppStandard trlc::platform::CppStandardInfo::standard |
Detected C++ standard.
Definition at line 40 of file cpp_standard.hpp.
const char* trlc::platform::CppStandardInfo::standard_name |
Human-readable standard name.
Definition at line 42 of file cpp_standard.hpp.
long trlc::platform::CppStandardInfo::version_macro |
Value of __cplusplus macro.
Definition at line 41 of file cpp_standard.hpp.