tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
index_constant.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_TYPE_TRAITS_INDEX_CONSTANT_HPP
4
#define TETL_TYPE_TRAITS_INDEX_CONSTANT_HPP
5
6
#include <
etl/_cstddef/size_t.hpp
>
7
#include <
etl/_type_traits/integral_constant.hpp
>
8
9
namespace
etl
{
10
11
template
<
size_t
I>
12
using
index_constant
=
integral_constant<size_t, I>
;
13
14
template
<
size_t
I>
15
inline
constexpr
auto
index_v
=
index_constant<I>
{};
16
17
}
// namespace etl
18
19
#endif
// TETL_TYPE_TRAITS_INDEX_CONSTANT_HPP
integral_constant.hpp
etl
Definition
adjacent_find.hpp:8
etl::index_constant
integral_constant< size_t, I > index_constant
Definition
index_constant.hpp:12
etl::index_v
constexpr auto index_v
Definition
index_constant.hpp:15
size_t.hpp
etl::integral_constant
Definition
integral_constant.hpp:9
include
etl
_type_traits
index_constant.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0