A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../utility/in_range.html below:

std::in_range - cppreference.com

template< class R, class T >
constexpr bool in_range( T t ) noexcept;

(since C++20)

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.

[edit] Parameters [edit] Return value

true if the value of t is representable in R, false otherwise.

[edit] Possible implementation [edit] Notes

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 values
(algorithm function object)[edit] returns the greater of the given values
(algorithm function object)[edit] clamps a value between a pair of boundary values
(algorithm function object)[edit] linear interpolation function
(function) [edit]

RetroSearch 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