|
stellarlib 0.1.0
|
Compile-time padding for explicit field layout alignment. More...
#include <type_traits.hpp>
Public Attributes | |
| std::conditional_t< static_cast< bool >(size), std::array< std::byte, size >, std::tuple<> > | bytes |
| Padding bytes. | |
Static Public Attributes | |
| static constexpr std::size_t | size {(alignof(AlignTo) - (sizeof(Fields) + ...) % alignof(AlignTo)) % alignof(AlignTo)} |
| Size of the padding in bytes. | |
Compile-time padding for explicit field layout alignment.
| AlignTo | Type whose alignment is used as the target |
| Fields | Types whose combined size is being padded |