std::experi...t_underlying(3)

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

πŸ¦‹ NAME πŸ¦‹

okay so this is the manual page for std::experi...t_underlying(3) from the C++ Standard Libary β€” yes that's the manual name, spelling and all, and we're folding it in right here near the top like a little name tag 🫢. The NAME line is std::experimental::get_underlying - std::experimental::get_underlying, which is giving "I contain multitudes (and they're the same name)" energy, periodt. πŸ’…

✨ Synopsis ✨

Bestie, here's the exact signature situation. We got two overloads, both constexpr and both noexcept, and they live in library fundamentals TS v2:

template< class T >
constexpr T& get_underlying( propagate_const<T>& pt )   (library
fundamentals TS v2)
noexcept;
template< class T >
constexpr const T& get_underlying( const                (library
fundamentals TS v2)
propagate_const<T>& pt ) noexcept;

And what do they do? They retrieve a reference to the pointer-like object stored inside a propagate_const. That's the whole vibe: you hand it a propagate_const, it gives you back a reference to the pointer-like thing tucked inside. πŸ”₯

πŸ“ Parameters πŸ“

  • pt β€” a propagate_const object. That's it, that's the parameter, she's simple and iconic. πŸŽ€

πŸ’– Return value πŸ’–

A reference to the pointer-like object stored in pt. So like, pt has the goods, and this function hands you a reference to those goods. No cap. ✨


Cute sign-off: source? http://cppreference.com 🌈, dated 2024.06.10 ⭐, and the manual page is std::experi...t_underlying(3) πŸ‘‘. Bye bestie, go get that underlying thing πŸ’œ.

πŸ“¦ where this page comes from