TRLC Platform Library  1.0.0
Header-only C++ library for compile-time platform detection and abstraction
32-bit

Checks if the architecture is 32-bit Convenience function to determine if the target architecture uses 32-bit pointers and address space. This is important for embedded systems and legacy platform compatibility.

32-bit Architecture Considerations

Returns
true if target architecture is 32-bit
Note
This function is constexpr and evaluates at compile time
See also
is64BitArchitecture() for the complementary check
getPointerSize() for the actual pointer size in bits
ArchitectureInfo::is32Bit() for member function version

aware code

// Use memory-efficient data structures
static_assert(sizeof(void*) == 4);
using offset_type = std::uint32_t;
} else {
// 64-bit architecture, can use larger types
using offset_type = std::uint64_t;
}
static bool is32BitArchitecture()
Since
1.0.0