|
NumericAL
A header-only C++20 lexer built on REAL
|
The allocator of numerical::buffer. An element constructed with no value is default-initialised, so a double keeps whatever its memory held, where std::allocator zeroes it; one constructed with a value is constructed from it. A result written in full is then written once, by the threads that compute it, not zeroed first on one of them (a product of order 512 on eight arm64 threads spent a fifth of its time in that zeroing).
More...
#include <buffer.hpp>
Classes | |
| struct | rebind |
| The allocator of another element type, as std::allocator_traits rebinds it. More... | |
Public Types | |
| using | value_type = T |
| The element type. | |
Public Member Functions | |
| default_init_allocator () noexcept=default | |
| template<typename U > | |
| false | default_init_allocator (const default_init_allocator< U > &) noexcept |
| From the allocator of another element type: stateless, as std::allocator. | |
| template<typename U > | |
| void | construct (U *at) noexcept(std::is_nothrow_default_constructible_v< U >) |
Default-initialises the element at at. | |
| template<typename U , typename ... Args> | |
| void | construct (U *at, Args &&... args) |
Constructs the element at at from args. | |
The allocator of numerical::buffer. An element constructed with no value is default-initialised, so a double keeps whatever its memory held, where std::allocator zeroes it; one constructed with a value is constructed from it. A result written in full is then written once, by the threads that compute it, not zeroed first on one of them (a product of order 512 on eight arm64 threads spent a fifth of its time in that zeroing).
Definition at line 35 of file buffer.hpp.
The element type.
Definition at line 37 of file buffer.hpp.
|
defaultnoexcept |
|
inlineexplicitnoexcept |
From the allocator of another element type: stateless, as std::allocator.
Definition at line 51 of file buffer.hpp.
|
inlinenoexcept |
Default-initialises the element at at.
Definition at line 124 of file buffer.hpp.
|
inline |
Constructs the element at at from args.
Definition at line 132 of file buffer.hpp.