[Bug middle-end/86471] GCC/libstdc++ outputs inferior code for std::fill and std::fill_n vs std::memset on c-style arrays
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 17 00:08:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86471
--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Matt Bentley from comment #16)
> Yup - arguably it would be nice to have an overload for vector iterators
> that does the same thing.
We already handle that, see the __niter_base functions which unwrap std::vector
and std::basic_string iterators into pointers.
More information about the Gcc-bugs
mailing list