Templates to declare integers by byte count (in

#include <mrpt/core/integer_select.h>)

// typedefs

typedef typename int_select_by_bytecount<num_bytes>::type mrpt::int_select_by_bytecount_t;
typedef typename uint_select_by_bytecount<num_bytes>::type mrpt::uint_select_by_bytecount_t;

// structs

template <unsigned int num_bytes>
struct mrpt::int_select_by_bytecount;

template <>
struct mrpt::int_select_by_bytecount<4>;

template <>
struct mrpt::int_select_by_bytecount<3>;

template <>
struct mrpt::int_select_by_bytecount<8>;

template <>
struct mrpt::int_select_by_bytecount<1>;

template <>
struct mrpt::int_select_by_bytecount<2>;

template <>
struct mrpt::uint_select_by_bytecount<2>;

template <>
struct mrpt::uint_select_by_bytecount<3>;

template <>
struct mrpt::uint_select_by_bytecount<1>;

template <>
struct mrpt::uint_select_by_bytecount<4>;

template <unsigned int num_bytes>
struct mrpt::uint_select_by_bytecount;

template <>
struct mrpt::uint_select_by_bytecount<8>;

Typedefs

typedef typename int_select_by_bytecount<num_bytes>::type mrpt::int_select_by_bytecount_t

Usage: int_select_by_bytecount_t<N> var;.

C++14 helper type for int_select_by_bytecount<>

typedef typename uint_select_by_bytecount<num_bytes>::type mrpt::uint_select_by_bytecount_t

Usage: uint_select_by_bytecount_t<N> var;.

C++14 helper type for uint_select_by_bytecount<>