Declares aligned storage as a std::byte array.
Storage provides aligned external storage for containers such as pw::Deque, avoiding the need for alignment checks.
Note that sizeof(Storage) may be larger than kSizeBytes due to padding for alignment.
| kAlignment | How to align the storage; must be valid for use as alignas(kAlignment). |
| kSizeBytes | Storage size. |
Public Types | |
| using | value_type = std::byte |
| using | size_type = size_t |
| using | pointer = value_type * |
| using | const_pointer = const value_type * |
Public Member Functions | |
| Storage (const Storage &)=delete | |
| Storage & | operator= (const Storage &)=delete |
| Storage (Storage &&)=delete | |
| Storage & | operator= (Storage &&)=delete |
| constexpr pointer | data () |
| constexpr const_pointer | data () const |
| constexpr size_type | size () const |
| The size of the storage in bytes. | |
| constexpr bool | empty () const |
| constexpr void | fill (std::byte value) |