std::common_reference_with(3cxx)

πŸ“¦
version 16-20260322 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, this is the std::common_reference_with(3cxx) page πŸ’– and the name is literally std::common_reference_with β€” [concept.commonref], concept common_reference_with. that's it, that's the whole label, and yes it's giving very specific C++ concept energy ✨

πŸ“š SYNOPSIS πŸ“š

you gotta bring in the concepts header first, no cap:

#include <concepts>

🧚 Concept definition 🧚

and here's the actual concept definition, copied exactly because we do not play with C++ syntax πŸ’…:

template<typename _Tp, typename _Up>
concept std::common_reference_with =  same_as<common_reference_t<_Tp, _Up>, common_reference_t<_Up, _Tp>>
             && convertible_to<_Tp, common_reference_t<_Tp, _Up>>
             && convertible_to<_Up, common_reference_t<_Tp, _Up>>

πŸ’… Detailed Description πŸ’…

the detailed description is lowkey just this: [concept.commonref], concept common_reference_with. minimal. iconic. periodt πŸ’œ

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.


signed off from the libstdc++ manual, std::common_reference_with(3cxx) β€” source/version: libstdc++; date: not printed in this footer, but we're timeless anyway, mwah πŸ’‹