carb::cpp20
-
namespace cpp20
Namespace for C++20 features using C++14 semantics.
Namespace for C++14 compatible versions of some C++20 STL classes and functions.
Classes
carb::cpp20::barrier: Implements a C++20 barrier in C++14 semantics.
carb::cpp20::counting_semaphore: C++20-compatible counting semaphore class.
carb::cpp20::latch: Implements a C++20 latch in C++14 semantics.
carb::cpp20::span: An object that refers to a contiguous sequence of objects.
Enumerations
carb::cpp20::endian: Indicates the endianness of all scalar types for the current system.
Functions
carb::cpp20::as_bytes: Obtains a view ot the object representation of the elements of the given span.
carb::cpp20::as_writable_bytes: Obtains a writable view to the object representation of the elements of the given span.
carb::cpp20::bit_cast: Re-interprets the bits
src
as typeTo
.carb::cpp20::bit_ceil: Finds the smallest integral power of two not less than the given value.
carb::cpp20::bit_floor: Finds the largest integral power of two not greater than the given value.
carb::cpp20::countl_zero: Returns the number of consecutive 0 bits in the value of val, starting from the most significant bit ("left").
carb::cpp20::countr_zero: Returns the number of consecutive 0 bits in the value of val, starting from the least significant bit ("right").
carb::cpp20::data: Returns a pointer to the block of memory containing the elements of the range.
carb::cpp20::data: Returns a pointer to the block of memory containing the elements of the range.
carb::cpp20::data: Returns a pointer to the block of memory containing the elements of the range.
carb::cpp20::data: Returns a pointer to the block of memory containing the elements of the range.
carb::cpp20::has_single_bit: Checks if a given value is an integral power of 2.
carb::cpp20::popcount: Returns the number of 1 bits in the value of x.
Structs
carb::cpp20::type_identity: Provides the member typedef type that names T (i.e. the identity transformation). This can be used to establish non-deduced contexts in template argument deduction.
Typedefs
carb::cpp20::binary_semaphore: Alias for a counting semaphore that can only be acquired by one caller at a time.
carb::cpp20::type_identity_t: Helper type for type_identity .
Variables
carb::cpp20::dynamic_extent: A constant of type size_t that is used to differentiate carb::cpp20::span of static and dynamic extent.