STD::IS_FINAL(3cxx)

πŸ’– NAME πŸ’–

std::is_final< _Tp > β€” bestie, it's literally is_final. That's the whole vibe.

This one lives in the 3cxx section of the manual, aka the C++ corner of the libstdc++ docs πŸŽ€


🌸 SYNOPSIS 🌸

#include <type_traits>

It inherits std::integral_constant< bool, __is_final(_Tp)>. Slay. πŸ’…

✨ Public Types ✨

  • typedef integral_constant< bool, __v > type β€” the type it hands you, exactly as written, __v and all.
  • typedef bool value_type β€” yep. It's bool. The truthiest of the truths. πŸ”₯

πŸ¦‹ Public Member Functions πŸ¦‹

  • constexpr operator value_type () const noexcept β€” converts itself to a value_type, it's declared constexpr and noexcept, no drama allowed.
  • constexpr value_type operator() () const noexcept β€” call it like a function, get a value_type back. Also constexpr, also noexcept. Iconic behavior. πŸ‘‘

πŸŽ€ Static Public Attributes πŸŽ€

  • static constexpr bool value β€” the static constexpr bool doing all the heavy lifting. Main character energy fr fr.

πŸ’œ Detailed Description πŸ’œ

template<typename _Tp>
    struct std::is_final< _Tp >"is_final

(okay the stray quote mark in there? that's literally how the page prints it, not me being chaotic, I promise 😭)

Since: C++14. So if you're compiling for anything older, this vibe check does not exist yet, sorry bestie 🫢

🌈 Author 🌈

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, not a girlboss, just a doc generator doing its little thing. πŸ€–βœ¨


Anyway, that's the whole page, no cap. Thanks for reading my little TED talk about a type trait that asks one question: is this type final or not? πŸ’€ Go forth and static_assert, bestie.

This manual page belongs to libstdc++ (that's the C++ standard library crew πŸ“), rendered in the 3cxx section, and it was generated for you with love and zero human editors. Mwah. πŸ’–βœ¨πŸŽ€