[libc++][ranges] Implement `ranges::replace_copy{,_if}`.

Co-authored-by: Konstantin Varlamov <varconst@apple.com>

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

NOKEYCHECK=True
GitOrigin-RevId: 93172c1c2b10066628c85c9ff78eb882222fb304
15 files changed