tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
language_standard.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Macros

#define TETL_CPP_STANDARD   26
 
#define TETL_CPP_STANDARD_FULL   __cplusplus
 

Enumerations

enum struct  language_standard : unsigned char { cpp_17 = 17 , cpp_20 = 20 , cpp_23 = 23 , cpp_26 = 26 }
 Enumeration for the currently selected C++ standard version. Unlike the official macro __cplusplus, these values only include the published year. This is to make the actual values smaller and therfore fit on smaller word sized chips. More...
 

Functions

constexpr auto operator!= (language_standard lhs, language_standard rhs) noexcept -> bool
 
constexpr auto operator< (language_standard lhs, language_standard rhs) noexcept -> bool
 
constexpr auto operator<= (language_standard lhs, language_standard rhs) noexcept -> bool
 
constexpr auto operator== (language_standard lhs, language_standard rhs) noexcept -> bool
 Compares language_standards.
 
constexpr auto operator> (language_standard lhs, language_standard rhs) noexcept -> bool
 
constexpr auto operator>= (language_standard lhs, language_standard rhs) noexcept -> bool
 

Variables

constexpr auto current_standard = language_standard::cpp_26
 The currently configured C++ standard.
 

Macro Definition Documentation

◆ TETL_CPP_STANDARD

#define TETL_CPP_STANDARD   26

◆ TETL_CPP_STANDARD_FULL

#define TETL_CPP_STANDARD_FULL   __cplusplus