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

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

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

// Use 64-bit optimized data structures
using size_type = std::uint64_t;
using hash_type = std::uint64_t;
} else {
// Use 32-bit compatible types
using size_type = std::uint32_t;
using hash_type = std::uint32_t;
}
static bool is64BitArchitecture()
Since
1.0.0