This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Simplify enable_if for std::copy optimization
ClosedPublic

Authored by ldionne on Jun 7 2022, 10:17 AM.

Details

Summary

Get rid of the is_trivially_copy_assignable_unwrapped helper, which
is only used in one place, and use
iter_value_type instead of
iterator_traits<T>::value_type.

Diff Detail

Event Timeline

ldionne created this revision.Jun 7 2022, 10:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2022, 10:17 AM
ldionne requested review of this revision.Jun 7 2022, 10:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2022, 10:17 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision.Jun 7 2022, 10:27 AM
This revision is now accepted and ready to land.Jun 7 2022, 10:27 AM
Mordante accepted this revision.Jun 7 2022, 12:23 PM
Mordante added a subscriber: Mordante.

LGTM when the CI is happy.