std::indirectly_movable(3)
π NAME π
okay so bestie, welcome to std::indirectly_movable(3) from the C++ Standard Libary β yes, that spelling, weβre keeping it, no cap. NAME energy: std::indirectly_movable - std::indirectly_movable. This page is all about a relationship between an indirectly readable type and an indirectly writable type, and the vibe check is: can the writable side directly move the object that the readable side references? π
β¨ Synopsis β¨
Defined in header <iterator>
template< class In, class Out >
concept indirectly_movable =
(since C++20)
std::indirectly_readable<In> &&
std::indirectly_writable<Out, std::iter_rvalue_reference_t<In>>;
So the indirectly_movable concept is lowkey the matchmaker between an indirectly_readable type and an indirectly_writable type. The indirectly_writable type must be able to directly move the object that the indirectly_readable type references. Thatβs the whole assignment, and it ate. π
πΈ See also πΈ
indirectly_movable_storable(C++20)β concept; specifies that values may be moved from anindirectly_readabletype to anindirectly_writabletype, and that the move may be performed via an intermediate object. πindirectly_copyable(C++20)β concept; specifies that values may be copied from anindirectly_readabletype to anindirectly_writabletype. π¦
mwah π bestie, this page came from http://cppreference.com and is dated 2024.06.10 β now go forth and slay your iterators. π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms