ATLAS Offline Software
Loading...
Searching...
No Matches
Control
CxxUtils
CxxUtils
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
17
namespace
CxxUtils
{
18
19
template
<
size_t
Bits>
struct
bit_int
;
20
template
<>
struct
bit_int
<8> {
using
type
= std::int8_t; };
21
template
<>
struct
bit_int
<16> {
using
type
= std::int16_t; };
22
template
<>
struct
bit_int
<32> {
using
type
= std::int32_t; };
23
template
<>
struct
bit_int
<64> {
using
type
= std::int64_t; };
24
25
template
<
size_t
Bits>
using
bit_int_t
=
typename
bit_int<Bits>::type
;
26
27
}
// namespace CxxUtils
28
#endif
CxxUtils
Definition
aligned_vector.h:29
CxxUtils::bit_int_t
typename bit_int< Bits >::type bit_int_t
Definition
bit_int.h:25
CxxUtils::bit_int< 16 >::type
std::int16_t type
Definition
bit_int.h:21
CxxUtils::bit_int< 32 >::type
std::int32_t type
Definition
bit_int.h:22
CxxUtils::bit_int< 64 >::type
std::int64_t type
Definition
bit_int.h:23
CxxUtils::bit_int< 8 >::type
std::int8_t type
Definition
bit_int.h:20
CxxUtils::bit_int
Definition
bit_int.h:19
Generated on
for ATLAS Offline Software by
1.16.1