HomePhabricator

[libc++] Use std::move in numeric algorithms (P0616R0).

Authored by zoecarver on Nov 27 2020, 11:05 AM.

Description

[libc++] Use std::move in numeric algorithms (P0616R0).

This patch updates algorithms in <numeric> to use std::move
based on p0616r0. Moving values instead of copying them
creates huge speed improvements (see the paper for details).

Differential Revision: https://reviews.llvm.org/D61170

Details