NAME
A static function of omni::application
omni::application::bit_width
A static function of omni::application
#include <omni/application.hpp>inline uint32_t omni::application::bit_width()
DESCRIPTION
Gets the current application context bit width by retrieving the size of a pointer and multiplying by CHAR_BIT; returns the following code
top
Gets the current application context bit width by retrieving the size of a pointer and multiplying by CHAR_BIT; returns the following code
(sizeof(char*) * CHAR_BIT). This does not affirm if a processor type is a specific bit width, e.g. a 32-bit application calling this function would return 32 even if run on a 64-bit machine.
top
EXAMPLE
Visit the examples page for more.
top
#include <omni/application> int main(int argc, char** argv) { std::cout << "Application bit-size: " << omni::application::bit_width() << std::endl; return 0; }
top