muu::build namespace

Build environment information (compiler, date/time, support for various things...)

Variables

size_t bitness constexpr
The 'bitness' of the target architecture (e.g. 64 on AMD64).
size_t bits_per_byte constexpr
The number of bits in a byte (aka CHAR_BIT).
uint32_t cpp_version constexpr
The current C++ language version (17, 20...)
uint32_t day constexpr
The current day of the month (1-31).
uint32_t hour constexpr
The current hour of the day (0-23).
bool is_big_endian constexpr
True if the target environment is big-endian.
bool is_little_endian constexpr
True if the target environment is little-endian.
uint32_t minute constexpr
The current minute (0-59).
uint32_t month constexpr
The current month of the year (1-12).
size_t pointer_size constexpr
The number of bytes required to store a pointer.
uint32_t second constexpr
The current second (0-59).
bool supports_constexpr_bit_cast constexpr
True if using bit_cast() in constexpr contexts is supported on this compiler.
bool supports_constexpr_half constexpr
True if using muu::half in constexpr contexts is fully supported on this compiler.
bool supports_constexpr_infinity_or_nan constexpr
True if using infinity_or_nan() in constexpr contexts is supported on this compiler.
bool supports_constexpr_math constexpr
True if some math functions (sin, cos, sqrt etc.) can be used in constexpr contexts on this compiler.
bool supports_exceptions constexpr
True if exceptions are supported.
bool supports_fixed_string_literals constexpr
Indicates whether muu::fixed_string string literals (e.g. "hello"_fs) are supported by the compiler.
bool supports_is_constant_evaluated constexpr
True if is_constant_evaluated() is properly supported on this compiler.
bool supports_rtti constexpr
True if run-time type identification (RTTI) is enabled.
bool supports_type_name constexpr
True if the use of (unspecialized) muu::type_name is supported on this compiler.
uint32_t year constexpr
The current year.

Variable documentation

size_t muu::build::bitness constexpr
#include <muu/build.h>

The 'bitness' of the target architecture (e.g. 64 on AMD64).

size_t muu::build::bits_per_byte constexpr
#include <muu/build.h>

The number of bits in a byte (aka CHAR_BIT).

uint32_t muu::build::cpp_version constexpr
#include <muu/build.h>

The current C++ language version (17, 20...)

uint32_t muu::build::day constexpr
#include <muu/build.h>

The current day of the month (1-31).

uint32_t muu::build::hour constexpr
#include <muu/build.h>

The current hour of the day (0-23).

bool muu::build::is_big_endian constexpr
#include <muu/build.h>

True if the target environment is big-endian.

bool muu::build::is_little_endian constexpr
#include <muu/build.h>

True if the target environment is little-endian.

uint32_t muu::build::minute constexpr
#include <muu/build.h>

The current minute (0-59).

uint32_t muu::build::month constexpr
#include <muu/build.h>

The current month of the year (1-12).

size_t muu::build::pointer_size constexpr
#include <muu/build.h>

The number of bytes required to store a pointer.

uint32_t muu::build::second constexpr
#include <muu/build.h>

The current second (0-59).

bool muu::build::supports_constexpr_bit_cast constexpr

True if using bit_cast() in constexpr contexts is supported on this compiler.

bool muu::build::supports_constexpr_half constexpr
#include <muu/half.h>

True if using muu::half in constexpr contexts is fully supported on this compiler.

bool muu::build::supports_constexpr_infinity_or_nan constexpr
#include <muu/math.h>

True if using infinity_or_nan() in constexpr contexts is supported on this compiler.

bool muu::build::supports_constexpr_math constexpr
#include <muu/math.h>

True if some math functions (sin, cos, sqrt etc.) can be used in constexpr contexts on this compiler.

bool muu::build::supports_exceptions constexpr
#include <muu/build.h>

True if exceptions are supported.

bool muu::build::supports_fixed_string_literals constexpr

Indicates whether muu::fixed_string string literals (e.g. "hello"_fs) are supported by the compiler.

bool muu::build::supports_is_constant_evaluated constexpr

True if is_constant_evaluated() is properly supported on this compiler.

bool muu::build::supports_rtti constexpr
#include <muu/build.h>

True if run-time type identification (RTTI) is enabled.

bool muu::build::supports_type_name constexpr

True if the use of (unspecialized) muu::type_name is supported on this compiler.

uint32_t muu::build::year constexpr
#include <muu/build.h>

The current year.