diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-15 07:24:08 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-15 07:24:08 +0100 |
| commit | 152f9ef5feff7ea41c647e004f6e98082abf4b1c (patch) | |
| tree | 59c2cabb1291aa8d938d2768b8183f14e8b6d8ad /serialize/packbits.hpp | |
| parent | 8c7d8405b7c88d0553ee505061ade27127410431 (diff) | |
w
Diffstat (limited to 'serialize/packbits.hpp')
| -rw-r--r-- | serialize/packbits.hpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/serialize/packbits.hpp b/serialize/packbits.hpp deleted file mode 100644 index 7d612942..00000000 --- a/serialize/packbits.hpp +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once -#include <concepts> -#include <utility> - -namespace floormat::detail_Pack { - -template<std::unsigned_integral T, size_t N> -struct bits final -{ - static_assert(std::is_fundamental_v<T>); - static_assert(N > 0); - static_assert(N < sizeof(T)*8); - - using type = T; -}; - -template<std::unsigned_integral T, size_t N> -struct make_tuple_type_ -{ - template<size_t> using index_to_type = T; - template<typename> struct aux; - template<size_t... Is> struct aux<std::index_sequence<Is...>> - { - static_assert(sizeof...(Is) > 0); - using type = std::tuple<index_to_type<Is>...>; - }; - using Seq = typename aux<std::make_index_sequence<N>>::type; -}; -template<std::unsigned_integral T, size_t N> using make_tuple_type = typename make_tuple_type_<T, N>::Seq; - -template<typename... Ts> struct empty_pack_tuple {}; - -} // namespace floormat::detail_Pack - -namespace floormat::pack { - - - -} // namespace floormat::pack |
