types/bits: add bytes_type convenience wrapper

This commit is contained in:
Danny Robson 2015-12-10 11:34:56 +11:00
parent 06fc8dd651
commit fcd10f1cea

View File

@ -60,6 +60,11 @@ template <> struct bits_type<64u> {
};
template <size_t BYTES>
struct bytes_type : public bits_type<BYTES * 8u>
{ };
template <typename T>
struct sized_type : public bits_type<sizeof(T) * 8u>
{ };