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
6namespace 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
constexpr auto isdigit(int ch) noexcept -> int
Checks if the given character is one of the 10 decimal digits: 0123456789.
Definition isdigit.hpp:15
Definition adjacent_find.hpp:8