pabigot  0.1.1
C++ support classes
pabigot::crc::details::uint_size_traits< C > Struct Template Reference

Entry-point to identifying unsigned integral types supporting a specific number of bits. More...

#include </mnt/devel/pabigot-cxx/include/pabigot/crc.hpp>

Inheritance diagram for pabigot::crc::details::uint_size_traits< C >:
pabigot::crc::details::uint_traits< C >

Detailed Description

template<unsigned int C>
struct pabigot::crc::details::uint_size_traits< C >

Entry-point to identifying unsigned integral types supporting a specific number of bits.

The concept here is derived from the approach in boost::integer, simplified by excluding signed types and exact representations; restricted by relying on the types in <cstdint> instead of native types; and possibly improved by not assuming the least and fast types are the same:

Template Parameters
Ca category value: 1 for 64 bit, 2 for 32 bit, 3 for 16 bit, and 4 for 8 bit. A specialization is provided for each of these.

The documentation for this struct was generated from the following file: