6namespace ae2f {
namespace Ds {
namespace Arr {
12 template<
typename __el_t>
16 static constexpr size_t ElSize =
sizeof(__el_t);
39 uint8_t c[
sizeof(T) + 1];
43 constexpr uint8_t& _isvalid()
noexcept {
49 constexpr const uint8_t& _isvalid()
const noexcept {
54 inline Pack() noexcept : c{0, } {
55 for(
size_t i = 0; i <
sizeof(T) + 1; i++)
A helper class for getting element type and element size.
Definition Pack.hpp:13
__el_t El_t
Defined element type.
Definition Pack.hpp:19
static constexpr size_t ElSize
Pre-defined element size.
Definition Pack.hpp:16
A value package for non-trivial classes. Which will not call the destructor of [T].
Definition Pack.hpp:32
T Obj
Definition Pack.hpp:63
constexpr bool isvalid() const noexcept
Check if ae2f::Ds::Arr::Pack<T>::Obj is valid.
Definition Pack.hpp:67
~Pack()
Definition Pack.hpp:70