StormByte-Buffer 4.0.0
C++26 buffer module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Buffer::Detail::HopperValue Concept Reference

Values supported by the nonthrowing, Base-allocated typed queues. More...

#include <StormByte/buffer/hopper.hxx>

Concept definition

template<typename T>
(!Type::Const<T>) && (!std::is_volatile_v<T>) &&
std::is_nothrow_default_constructible_v<T> && std::is_nothrow_move_constructible_v<T> &&
std::is_nothrow_move_assignable_v<T> && std::is_nothrow_destructible_v<T> &&
(alignof(T) <= __STDCPP_DEFAULT_NEW_ALIGNMENT__)
Values supported by the nonthrowing, Base-allocated typed queues.
Definition hopper.hxx:82

Detailed Description

Values supported by the nonthrowing, Base-allocated typed queues.

Template Parameters
TUnqualified element with Base SafeValue lifetime guarantees.
Note
Alignment above __STDCPP_DEFAULT_NEW_ALIGNMENT__ is rejected. Base's heap is operator new(std::size_t), which guarantees that alignment. alignof(std::max_align_t) is not the limit: on macOS and Windows it is 8 while operator new still returns 16.