STD::TYPE_ORDER(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 2 versions
, in arch rolling, centos-stream 10, fedora 44

✨ std::type_order< _Tp, _Up > ✨

okay bestie, we're in the Library Functions Manual today and this one is so cute β€” it's giving "let me rank types for you" energy πŸ’…


🌸 NAME 🌸

std::type_order< _Tp, _Up > β€” total ordering of types. yes queen, we are putting types in order, no cap πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <compare>

πŸ’œ Public Types

  • using value_type β€” the type alias, the moment, the it-girl 🫢

πŸ’œ Public Member Functions

  • constexpr operator value_type () const noexcept β€” converts itself into a value_type, and it's constexpr and noexcept, because it said "I don't do runtime errors" 😌
  • constexpr value_type operator() () const noexcept β€” call it like a function, get a value_type back. also constexpr, also noexcept. iconic behavior fr fr ✨

πŸ’œ Static Public Attributes

  • static constexpr strong_ordering value β€” the static constexpr strong_ordering itself, the main character of the whole struct πŸ‘‘

🌈 Detailed Description 🌈

template<typename _Tp, typename _Up>
    struct std::type_order< _Tp, _Up >

"Total ordering of types. πŸ’–

Since β€” C++26. not me being a brand new baby standard feature, lowkey obsessed with being so fresh πŸ“

🧚 Author 🧚

Generated automatically by Doxygen for libstdc++ from the source code. so like, nobody wrote this by hand, it just appeared, slay πŸ’€βœ¨


πŸ’Œ and that's the whole vibe check, bestie β€” this page came to you from libstdc++, std::type_... _Tp, _Up >(3), and yes the version is just "libstdc++" because Doxygen said so. mwah, periodt πŸŽ€πŸ’…
πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • centos-stream 10: gcc-toolset-16-libstdc++-docs 16.2.1-1.3.el10 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms