types/bits: add bytes_type convenience wrapper
This commit is contained in:
parent
06fc8dd651
commit
fcd10f1cea
@ -60,6 +60,11 @@ template <> struct bits_type<64u> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
template <size_t BYTES>
|
||||||
|
struct bytes_type : public bits_type<BYTES * 8u>
|
||||||
|
{ };
|
||||||
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct sized_type : public bits_type<sizeof(T) * 8u>
|
struct sized_type : public bits_type<sizeof(T) * 8u>
|
||||||
{ };
|
{ };
|
||||||
|
Loading…
Reference in New Issue
Block a user