19 #ifndef PSTORE_SUPPORT_MAX_HPP 20 #define PSTORE_SUPPORT_MAX_HPP 33 static constexpr std::size_t value () {
42 static constexpr std::size_t value () {
51 template <
typename TypeValue,
typename... T>
53 template <
typename TypeValue>
55 static constexpr
auto value = std::size_t{1};
57 template <
typename TypeValue,
typename Head,
typename... Tail>
58 struct maxof<TypeValue, Head, Tail...> {
59 static constexpr
auto value =
66 template <
typename... T>
75 sizeof (std::uint_least8_t),
76 "max(sizeof(1)) != sizeof(1)");
79 sizeof (std::uint_least16_t),
80 "max(sizeof(1),sizeof(2) != 2");
82 #endif // PSTORE_SUPPORT_MAX_HPP Given a list of types, find the size of the largest and the alignment of the most aligned...
Definition: max.hpp:67
Definition: nonpod2.cpp:40