Add `src/cpp-common/std-int.hpp`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 19 May 2022 12:38:05 +0000 (08:38 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
commit2f1bfb2a34b73d37444f0707292b4427d6db72c9
tree667c688d491a5557541c6686a37e143f563586af
parent3be0fc3cfe2ddbdfff6b428a95adf3058d03b3e8
Add `src/cpp-common/std-int.hpp`

This new header contains the `StdIntT` trait structure to get the
standard integer type from a length (bits) and a signedness.

For example, `bt2_common::StdIntT<32, true>::Type` is `std::int32_t`.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I69fc9ac7e01c2a82e4ad13afa553ef8e8720bd57
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8086
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10839
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/Makefile.am
src/cpp-common/std-int.hpp [new file with mode: 0644]
This page took 0.024761 seconds and 4 git commands to generate.