blob: a219511c4dc6c88cbbf59162ac482095e39f102b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: https://opensource.org/licenses/AFL-3.0
#pragma once
#include <cstddef>
namespace hg {
template <typename T>
[[nodiscard, gnu::always_inline]] inline constexpr std::size_t toSizeT(
const T value) noexcept
{
return static_cast<std::size_t>(value);
}
} // namespace hg
|