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();
version >= trlc::platform::CompilerVersion{9, 0}) {
// Use GCC 9+ features
}
@ gcc
GNU Compiler Collection - Cross-platform, open-source.
static CompilerType getCompilerType()
Detects the current compiler type at compile time.
Definition: compiler.hpp:323
static CompilerVersion getCompilerVersion()
Gets the compiler version at compile time.
Definition: compiler.hpp:357
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