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// SPDX-FileCopyrightText: Copyright (C) 2024 Tobias Hienzsch
3
4#ifndef TETL_TYPE_TRAITS_INDEX_CONSTANT_HPP
5#define TETL_TYPE_TRAITS_INDEX_CONSTANT_HPP
6
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_type_traits/integral_constant.hpp>
9
10namespace etl {
11
12template <size_t I>
13using index_constant = integral_constant<size_t, I>;
14
15template <size_t I>
16inline constexpr auto index_v = index_constant<I>{};
17
18} // namespace etl
19
20#endif // TETL_TYPE_TRAITS_INDEX_CONSTANT_HPP
Definition adjacent_find.hpp:9
constexpr auto index_v
Definition index_constant.hpp:16
Definition integral_constant.hpp:10