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
- Memory Limitations: 4GB address space limit
- Embedded Systems: Common in resource-constrained environments
- Legacy Compatibility: Support for older platforms and systems
- 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
static_assert(sizeof(void*) == 4);
using offset_type = std::uint32_t;
} else {
using offset_type = std::uint64_t;
}
- Since
- 1.0.0