units
Use physical dimensions at compile-time or run-time.
Public Types | List of all members
vnix::int_types< NB > Struct Template Reference

Smallest integer types for holding certain number of bits. More...

#include <int-types.hpp>

Inheritance diagram for vnix::int_types< NB >:
[legend]

Public Types

using US = typename int_types< NB+1 >::US
 Smallest unsigned integer. More...
 
using SS = typename int_types< NB+1 >::SS
 Smallest signed integer. More...
 
using UF = typename int_types< NB+1 >::UF
 Fastest unsigned integer. More...
 
using SF = typename int_types< NB+1 >::SF
 Fastest signed integer. More...
 

Detailed Description

template<unsigned NB>
struct vnix::int_types< NB >

Smallest integer types for holding certain number of bits.

Generic int_types refers to the int_types with the next-larger number of bits. The recursion ends with a terminal specialization: int_types<8>, int_types<16>, int_types<32>, or int_types<64>.

Template Parameters
NBNumber of bits.

Definition at line 21 of file int-types.hpp.

Member Typedef Documentation

template<unsigned NB>
using vnix::int_types< NB >::SF = typename int_types<NB + 1>::SF

Fastest signed integer.

Definition at line 26 of file int-types.hpp.

template<unsigned NB>
using vnix::int_types< NB >::SS = typename int_types<NB + 1>::SS

Smallest signed integer.

Definition at line 24 of file int-types.hpp.

template<unsigned NB>
using vnix::int_types< NB >::UF = typename int_types<NB + 1>::UF

Fastest unsigned integer.

Definition at line 25 of file int-types.hpp.

template<unsigned NB>
using vnix::int_types< NB >::US = typename int_types<NB + 1>::US

Smallest unsigned integer.

Definition at line 23 of file int-types.hpp.


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