STD::IS_NOTHROW_CONVERTIBLE(3cxx)
β¨ NAME β¨
std::is_nothrow_convertible< _From, _To > β bestie, it's literally the trait is_nothrow_convertible, no cap π
πΈ SYNOPSIS πΈ
Okay so first things first, you gotta pull in the header, periodt:
#include <type_traits>
And here's the glow-up: this whole thing inherits std::integral_constant< bool, __v >. Yes queen, it's giving integral_constant energy π
π Public Types π
typedef integral_constant< bool, __v > typeβ the type it's serving, iconictypedef bool value_typeβ it's aboolbestie, that's the vibe
π¦ Public Member Functions π¦
constexpr operator value_type () const noexceptβ converts you straight to thevalue_type, and it'sconstexpr+noexceptso it's lowkey flawless β¨constexpr value_type operator() () const noexceptβ call it like a function, get thevalue_typeback, alsoconstexpr+noexcept, we love a consistent queen π
π Static Public Attributes π
static constexpr bool valueβ the whole point of the entire operation tbh π
Detailed Description
Here's the actual shape of it, look at her:
template<typename _From, typename _To>
struct std::is_nothrow_convertible< _From, _To >
is_nothrow_convertible β that's the name, that's the moment, she said it herself ππ«Ά
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. Not me, not you, not a human β Doxygen did that, and honestly? It ate. π
And that's the whole page, bestie!! π It came straight out of the libstdc++ manual, section 3cxx, and yeah β Doxygen auto-generated the entire thing from the source code. Go forth and check those conversions in a nothrow way, mwah πβ¨
π¦ where this page comes from
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms