template< class R, class T >
constexpr bool in_range( T t ) noexcept;
Returns true if the value of t is in the range of values that can be represented in R
, that is, if t can be converted to R
in a value-preserving manner.
It is a compile-time error if either T
or U
is a non-integer type, a character type, or bool.
true if the value of t is representable in R
, false otherwise.
This function cannot be used with enums (including std::byte), char, char8_t, char16_t, char32_t, wchar_t and bool.
[edit] Example [edit] See also returns the smaller of the given valuesRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4