C++ Logo


Advanced search

integer types by bit size

From: Baruch Burstein <bmburstein_at_[hidden]>
Date: Tue, 27 Jul 2021 11:02:19 +0300
I have this code laying around for a long time. I know I used it, but I
can't remember what my use-case was. However, it is simple enough. I think
it may be worth adding it if someone can think of a use case.
Basically, it allows you to get an integer type based on a templated bit
size, i.e. sized_ints<40>::int_least_t will be an integer type with at
least 40 bits.

Received on 2021-07-27 03:03:00