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, iconic
  • typedef bool value_type β€” it's a bool bestie, that's the vibe

πŸ¦‹ Public Member Functions πŸ¦‹

  • constexpr operator value_type () const noexcept β€” converts you straight to the value_type, and it's constexpr + noexcept so it's lowkey flawless ✨
  • constexpr value_type operator() () const noexcept β€” call it like a function, get the value_type back, also constexpr + 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