tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
dynamic_extent.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2021 Tobias Hienzsch
3
4#ifndef TETL_SPAN_DYNAMIC_EXTENT_HPP
5#define TETL_SPAN_DYNAMIC_EXTENT_HPP
6
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_limits/numeric_limits.hpp>
9
10namespace etl {
11
12/// \brief etl::dynamic_extent is a constant of type etl::size_t that is used
13/// to differentiate etl::span of static and dynamic extent.
14/// \ingroup span
15inline constexpr auto dynamic_extent = numeric_limits<etl::size_t>::max();
16
17} // namespace etl
18
19#endif // TETL_SPAN_DYNAMIC_EXTENT_HPP
constexpr auto dynamic_extent
etl::dynamic_extent is a constant of type etl::size_t that is used to differentiate etl::span of stat...
Definition dynamic_extent.hpp:15
Definition adjacent_find.hpp:9
static constexpr auto max() noexcept -> unsigned long
Definition numeric_limits.hpp:811
Definition numeric_limits.hpp:18