std::move_iterator是一种迭代器适配器,表现与它的底层迭代器(必须至少是一个老式输入迭代器(LegacyInputIterator)或实现input_iterator(C++20 起))严格相同,但解引用会将底层迭代器返回的值转换为右值。如果此迭代器用作输入迭代器,那么效果是值被移动,而非复制。
std::make_move_iterator Defined in header<iterator> template<classIter> std::move_iterator<Iter>make_move_iterator(Iter i); (since C++11) (constexpr since C++17) make_move_iteratoris a convenience function template that constructs astd::move_iteratorfor the given iteratoriwith the type deduced...
move_iterator (C++11) 解引用结果为右值的迭代器适配器 (类模板) move_sentinel (C++20) std::move_iterator的哨位适配器 (类模板) make_move_iterator (C++11) 创建拥有从实参推出的类型的std::move_iterator (函数模板) common_iterator (C++20) ...
iter_move(std::move_iterator) From cppreference.com Iterator library Iterator concepts indirectly_readable (C++20) indirectly_writable (C++20) weakly_incrementable (C++20) incrementable (C++20) input_or_output_iterator (C++20) sentinel_for
Planned Maintenance The site will be in a temporary read-only mode in the next few weeks to facilitate some long-overdue software updates. We apologize for any inconvenience this may cause! C++ reference C++11,C++14,C++17,C++20,C++23,C++26│Compiler supportC++11,C++14,C++17,C++20,C++23,C+...
Iterator concetto generale di accesso ai dati all'interno di una struttura di dati Original: general concept to access data within some data structure The text has been machine-translated viaGoogle Translate. You can help to correct and verify the translation. Clickherefor instructions. ...
8) Move constructor. Constructs the string with the contents ofotherusing move semantics. 9) Constructs the string with the contents of the initializer listinit. Parâmetros alloc- alocador de usar para todas as alocações de memória de esta cadeia ...
f. (до C++11) std::move(f). (начинаяс C++11) Сложность Ровно last - firstприменений f. Возможнаяреализация template<class InputIt, class UnaryFunction> UnaryFunction for_each(InputIt first, InputIt last, UnaryFuncti...
std::move_iterator should not always be input_iterator (FTM)* P2520R0 12.3* 17* 19.34** 15.0.0* Deduction guides update for explicit object parameter call operators LWG3617 14 19.34* Deduction guides update for static operator() P1169R4 13 16 19.39* 15.0.0* ...
ranges::uninitialized_move_n (C++20) 移动若干对象到未初始化内存 (算法函数对象) ranges::uninitialized_default_construct (C++20) 在范围所定义的未初始化内存中用默认初始化构造对象 (算法函数对象) ranges::uninitialized_default_construct_n (C++20) 在起点和数量所定义的未初始化内存中用默认初始化构...