Checks if the architecture is 64-bit Convenience function to determine if the target architecture uses 64-bit pointers and address space. This is equivalent to checking if the pointer size is 64 bits.
64-bit Architecture Benefits
- Large Address Space: Access to more than 4GB of memory
- Performance: Often better register utilization and instruction sets
- Modern Features: Support for advanced CPU features and optimizations
- Returns
- true if target architecture is 64-bit
- Note
- This function is constexpr and evaluates at compile time
- See also
- is32BitArchitecture() for the complementary check
-
getPointerSize() for the actual pointer size in bits
-
ArchitectureInfo::is64Bit() for member function version
optimizations
using size_type = std::uint64_t;
using hash_type = std::uint64_t;
} else {
using size_type = std::uint32_t;
using hash_type = std::uint32_t;
}
- Since
- 1.0.0