TRLC Platform Library  1.0.0
Header-only C++ library for compile-time platform detection and abstraction
trlc::platform::CppStandardInfo Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ isAtLeast()

static bool trlc::platform::CppStandardInfo::isAtLeast ( CppStandard  min_standard) const
inlinestatic

Checks if the current standard is at least the specified version.

Parameters
min_standardMinimum required C++ standard
Returns
true if current standard >= min_standard

Definition at line 49 of file cpp_standard.hpp.

◆ supportsFeature()

static bool trlc::platform::CppStandardInfo::supportsFeature ( const char *  feature_name) const
inlinestatic

Checks if a specific language feature is supported.

Parameters
feature_nameName of the feature to check
Returns
true if feature is supported in this standard

Definition at line 58 of file cpp_standard.hpp.

Member Data Documentation

◆ standard

CppStandard trlc::platform::CppStandardInfo::standard

Detected C++ standard.

Definition at line 40 of file cpp_standard.hpp.

◆ standard_name

const char* trlc::platform::CppStandardInfo::standard_name

Human-readable standard name.

Examples
/home/tranglc/sources/trlc-platform/include/trlc/platform/core.hpp.

Definition at line 42 of file cpp_standard.hpp.

◆ version_macro

long trlc::platform::CppStandardInfo::version_macro

Value of __cplusplus macro.

Examples
/home/tranglc/sources/trlc-platform/include/trlc/platform/core.hpp.

Definition at line 41 of file cpp_standard.hpp.


The documentation for this struct was generated from the following file: