std::experi...gnedIntegral(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

Okay bestie, this is the std::experi...gnedIntegral(3) page from the C++ Standard Libary β€” yes, that’s the manual name, and it’s giving very specific ranges-concept energy πŸ’…βœ¨

🌸 NAME 🌸

std::experimental::ranges::UnsignedIntegral β€” literally std::experimental::ranges::UnsignedIntegral. That’s the name, that’s the vibe, no notes 🫢

✨ Synopsis ✨

Defined in header <experimental/ranges/concepts> πŸ“

template< class T >
(ranges TS)
concept bool UnsignedIntegral = Integral<T> && !SignedIntegral<T>;

The concept UnsignedIntegral<T> is satisfied if and only if T is an integral type and std::is_signed<T>::value is false. Periodt. πŸ’–

πŸ’… Notes πŸ’…

⚠️ Important little caveat, bestie: UnsignedIntegral<T> may be satisfied by a type that is not a unsigned integer type β€” for example, bool. No cap, that’s exactly what the note says πŸ™ˆ

πŸ‘‘ See also πŸ‘‘

  • is_integral β€” checks if a type is an integral type (C++11) (class template) πŸ”
  • is_signed β€” checks if a type is a signed arithmetic type (C++11) (class template) ✨

Sign-off time πŸŽ€ Source: http://cppreference.com Β· Version/date: 2024.06.10 Β· Page: std::experi...gnedIntegral(3) β€” byeee, go check those integral types πŸ’–πŸ¦‹

πŸ“¦ where this page comes from