std::common_reference_with(3cxx)
β¨ 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 π
π¦ where this page comes from
- ubuntu resolute: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms