[all-commits] [llvm/llvm-project] 8f4a61: [libc++] Adds a test for std::fill_n.
mordante via All-commits
all-commits at lists.llvm.org
Tue Jan 18 10:27:37 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8f4a6187f2cbeaf7ccdfd720a0dda626f3bbb46e
https://github.com/llvm/llvm-project/commit/8f4a6187f2cbeaf7ccdfd720a0dda626f3bbb46e
Author: Mark de Wever <koraq at xs4all.nl>
Date: 2022-01-18 (Tue, 18 Jan 2022)
Changed paths:
M libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/fill_n.pass.cpp
Log Message:
-----------
[libc++] Adds a test for std::fill_n.
The function `std::fill` requires a ForwardIterator, but `std::fill_n`
only requires an OutputIterator. Adds a test to validate `std::fill_n`
works with an OutputIterator.
Noticed this while working on LWG3539
format_to must not copy models of output_iterator<const charT&>
Reviewed By: #libc, Quuxplusone, ldionne
Differential Revision: https://reviews.llvm.org/D117395
More information about the All-commits
mailing list