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