2)同(1),但按照policy执行。此重载仅若std::is_execution_policy_v<std::decay_t<ExecutionPolicy>>为 true 才参与重载决议。 参数 first, last-要复制的元素范围 n_first-指向[first, last)中应出现在新范围起始的元素的迭代器 d_first-目标范围的起始 policy-所用的执行策
输出: before sort: 2 4 2 0 5 10 7 3 7 1 after sort: 0 1 2 2 3 4 5 7 7 10 simple rotate left : 1 2 2 3 4 5 7 7 10 0 simple rotate right: 0 1 2 2 3 4 5 7 7 10 参阅 rotate_copy 复制并旋转元素范围 (函数模板) C语言 | C++中文网 ...