TRLC Platform Library
1.0.0
Header-only C++ library for compile-time platform detection and abstraction
Version-dependent
features
constexpr
auto
version =
trlc::platform::getCompilerVersion
();
if
constexpr (
trlc::platform::getCompilerType
() ==
trlc::platform::CompilerType::gcc
&&
version >=
trlc::platform::CompilerVersion
{9, 0}) {
// Use GCC 9+ features
}
trlc::platform::CompilerType::gcc
@ gcc
GNU Compiler Collection - Cross-platform, open-source.
trlc::platform::getCompilerType
static CompilerType getCompilerType()
Detects the current compiler type at compile time.
Definition:
compiler.hpp:323
trlc::platform::getCompilerVersion
static CompilerVersion getCompilerVersion()
Gets the compiler version at compile time.
Definition:
compiler.hpp:357
trlc::platform::CompilerVersion
Definition:
compiler.hpp:175
Author
TRLC Platform Team
Version
1.0.0
Since
1.0.0
See also
architecture.hpp
for CPU architecture detection
features.hpp
for language feature detection
Copyright
Copyright (c) 2025 TRLC Platform
Generated on Wed Aug 27 2025 14:26:37 for TRLC Platform Library by
1.9.1