ATLAS Offline Software
Loading...
Searching...
No Matches
bit_int.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration.
4 */
11
12#ifndef CXXUTILS_BIT_INT_H
13#define CXXUTILS_BIT_INT_H
14#include <cstdint>
15#include <cstddef>
16
17namespace CxxUtils {
18
19template <size_t Bits> struct bit_int;
20template <> struct bit_int<8> { using type = std::int8_t; };
21template <> struct bit_int<16> { using type = std::int16_t; };
22template <> struct bit_int<32> { using type = std::int32_t; };
23template <> struct bit_int<64> { using type = std::int64_t; };
24
25template <size_t Bits> using bit_int_t = typename bit_int<Bits>::type;
26
27} // namespace CxxUtils
28#endif
typename bit_int< Bits >::type bit_int_t
Definition bit_int.h:25
std::int16_t type
Definition bit_int.h:21
std::int32_t type
Definition bit_int.h:22
std::int64_t type
Definition bit_int.h:23
std::int8_t type
Definition bit_int.h:20