tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
isdigit.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CCTYPE_ISDIGIT_HPP
4
#define TETL_CCTYPE_ISDIGIT_HPP
5
6
namespace
etl
{
7
15
[[nodiscard]]
constexpr
auto
isdigit
(
int
ch)
noexcept
->
int
{
return
static_cast<
int
>
(ch >=
'0'
and ch <=
'9'
); }
16
17
}
// namespace etl
18
19
#endif
// TETL_CCTYPE_ISDIGIT_HPP
etl::isdigit
constexpr auto isdigit(int ch) noexcept -> int
Checks if the given character is one of the 10 decimal digits: 0123456789.
Definition
isdigit.hpp:15
etl
Definition
adjacent_find.hpp:8
include
etl
_cctype
isdigit.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0