nalchi
Loading...
Searching...
No Matches
make_unsigned_allow_bool.hpp
1
#pragma once
2
3
#include <cstdint>
4
#include <type_traits>
5
6
namespace
nalchi
7
{
8
9
template
<
typename
T>
10
struct
make_unsigned_allow_bool
11
{
12
using
type = std::make_unsigned_t<T>;
13
};
14
15
template
<>
16
struct
make_unsigned_allow_bool
<bool>
17
{
18
using
type = std::uint8_t;
19
};
20
21
template
<
typename
T>
22
using
make_unsigned_allow_bool_t =
typename
make_unsigned_allow_bool<T>::type;
23
24
}
// namespace nalchi
nalchi::make_unsigned_allow_bool
Definition
make_unsigned_allow_bool.hpp:11
include
nalchi
make_unsigned_allow_bool.hpp
Generated by
1.12.0