std::numeri...::is_bounded(3)
π NAME π
Manual name check: this is the std::numeri...::is_bounded(3) page from the C++ Standard Libary β hiii bestie, welcome to the group chat. π
std::numeric_limits::is_boundedβstd::numeric_limits::is_boundedβ yes, that's the whole name, and yes, she's giving main-character repetition. Periodt.
β¨ Synopsis β¨
Okay so the signature vibe is literally this:
static const bool is_bounded; (until C++11)
static constexpr bool is_bounded; (since C++11)
The value of std::numeric_limits<T>::is_bounded is true for all arithmetic types T that represent a finite set of values. π―
While all fundamental types are bounded, this constant would be false in a specialization of std::numeric_limits for a library-provided arbitrary precision arithmetic type. Noted, bestie β no cap.
π Standard specializations π
Here's the vibe check for the value of std::numeric_limits<T>::is_bounded for each standard T:
/* non-specialized */βfalseboolβtruecharβtruesigned charβtrueunsigned charβtruewchar_tβtruechar8_t(since C++20) βtruechar16_t(since C++11) βtruechar32_t(since C++11) βtrueshortβtrueunsigned shortβtrueintβtrueunsigned intβtruelongβtrueunsigned longβtruelong long(since C++11) βtrueunsigned long long(since C++11) βtruefloatβtruedoubleβtruelong doubleβtrue
Every single one accounted for, bestie. Slay. π
π¦ See also π¦
is_integerβ identifies integer types;[static](public static member constant) π«Άis_signedβ identifies signed types;[static](public static member constant) β¨is_exactβ identifies exact types;[static](public static member constant) π
π Signed off by your favorite standard-library bestie: sourced from http://cppreference.com, version/date 2024.06.10, page std::numeri...::is_bounded(3). Mwah. π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms