.. ******************************************************************************* Copyright (c) 2024 Accenture This program and the accompanying materials are made available under the terms of the Apache License Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0 SPDX-License-Identifier: Apache-2.0 ******************************************************************************* .. _util_meta: `util::meta` ============ util::meta::BinaryValue ----------------------- ``BinaryValue`` template struct allows creating integers using another uit32_t integer, representing binary value as argument for template. This class is similar to binary representation as string in ``std::bitset``. .. code-block:: cpp uint32_t binaryValue = BinaryValue<11>::value; assert(3 == binaryValue); util::meta::Bitmask ------------------- The ``util::meta::Bitmask`` template struct facilitates the convenient generation of an integer value whose binary representation consists entirely of ones (1) in all positions. .. code-block:: cpp assert(uint16_t(0x000F) == (Bitmask::value)); // 1111