std::copy_constructible(3cxx)
β¨ std::copy_constructible β¨
okay bestie, so this one lives in the 3cxx manual (that's the libstdc++ corner of the man page universe) and it's literally the cutest little concept β std::copy_constructible π
πΈ NAME πΈ
std::copy_constructible β [concept.copyconstructible], concept copy_constructible
π¦ SYNOPSIS π¦
#include <concepts>
π Concept definition
template<typename _Tp>
concept std::copy_constructible = move_constructible<_Tp>
&& constructible_from<_Tp, _Tp&> && convertible_to<_Tp&, _Tp>
&& constructible_from<_Tp, const _Tp&> && convertible_to<const _Tp&, _Tp>
&& constructible_from<_Tp, const _Tp> && convertible_to<const _Tp, _Tp>
not me stacking six requirements with && like it's a friendship bracelet π every single one of them has to hold, no skipping, no cap.
π₯ Detailed Description
[concept.copyconstructible], concept copy_constructible
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
and that's the whole page, bestie β short, sweet, and serving absolute template-concept realness π«Ά this was the std::copy_constructible(3cxx) page from libstdc++, fr fr. go forth and copy-construct responsibly πβ¨
π¦ 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