|
stellarlib 0.1.0
|
Standard library extensions. More...
Namespaces | |
| namespace | filesystem |
| Standard library extensions. | |
Classes | |
| class | vector_allocator |
| Linear memory allocator optimized for vectors. More... | |
| class | arena |
| Fixed-size, page-aligned memory arena. More... | |
| class | arena_allocator |
| Dynamic arena allocator. More... | |
| struct | padding |
| Compile-time padding for explicit field layout alignment. More... | |
Typedefs | |
| template<typename Pack, typename T> | |
| using | expand_as = T |
| Expands a parameter pack into a repeated type. | |
| template<typename T> | |
| using | is_trivially_relocatable = std::bool_constant<std::is_trivially_move_constructible_v<T> && std::is_trivially_destructible_v<T>> |
| Evaluates whether T is eligible for bit-wise relocation. | |
Functions | |
| template<typename T> | |
| constexpr auto | bit_index (const T arg) noexcept |
| Calculates the segment index of a bit in an array. | |
| template<typename T> | |
| constexpr auto | bit_mask (const T arg) noexcept |
| Calculates the segment mask of a bit in an array. | |
| template<typename Scope, typename SizeType = std::size_t> | |
| constexpr auto | sequential_id () noexcept |
| Thread-safe sequential ID generator scoped by type. | |
| template<typename Scope, typename T, typename SizeType = std::size_t> | |
| constexpr auto | scoped_typeid () noexcept |
| Generates a unique ID per type within a scope. | |
Variables | |
| template<typename T> | |
| constexpr bool | is_trivially_relocatable_v {is_trivially_relocatable<T>::value} |
| Evaluates whether T is eligible for bit-wise relocation. | |
Standard library extensions.
| using stellarlib::ext::expand_as = T |
Expands a parameter pack into a repeated type.
| Pack | Parameter pack used to drive expansion |
| T | Type to substitute for each element |
| using stellarlib::ext::is_trivially_relocatable = std::bool_constant<std::is_trivially_move_constructible_v<T> && std::is_trivially_destructible_v<T>> |
Evaluates whether T is eligible for bit-wise relocation.
| T | Type to evaluate |
|
nodiscardconstexprnoexcept |
Calculates the segment index of a bit in an array.
| T | Unsigned integral type of the segment |
| arg | Index of the bit |
|
nodiscardconstexprnoexcept |
Calculates the segment mask of a bit in an array.
| T | Unsigned integral type of the segment |
| arg | Index of the bit |
|
nodiscardconstexprnoexcept |
Thread-safe sequential ID generator scoped by type.
| Scope | Distinct type used to separate ID sequences |
| SizeType | Integral type of the ID |
|
nodiscardconstexprnoexcept |
Generates a unique ID per type within a scope.
| Scope | Distinct type used to separate ID spaces |
| T | Type to retrieve an ID for |
| SizeType | Integral type of the ID |
|
constexpr |
Evaluates whether T is eligible for bit-wise relocation.
| T | Type to evaluate |