std::copy_constructible(3cxx)

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

✨ 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 πŸ’œβœ¨