This is an archive of the discontinued LLVM Phabricator instance.

[STLExtras] Relax type requirements for `is_contained`
ClosedPublic

Authored by kuhar on Feb 20 2023, 11:04 AM.

Details

Summary
  • Do not require both the Set and Element to be exactly the same type and, instead, only require them to be comparable.
  • Do not require Element to be copyable.
  • Add missing documentation comment.

Diff Detail

Event Timeline

kuhar created this revision.Feb 20 2023, 11:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2023, 11:04 AM
Herald added a subscriber: hanchung. · View Herald Transcript
kuhar requested review of this revision.Feb 20 2023, 11:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2023, 11:04 AM
kuhar edited the summary of this revision. (Show Details)Feb 20 2023, 11:05 AM
beanz accepted this revision.Feb 20 2023, 11:31 AM

LGTM. A very nice and useful improvement.

This revision is now accepted and ready to land.Feb 20 2023, 11:31 AM
This revision was landed with ongoing or failed builds.Feb 21 2023, 10:14 AM
This revision was automatically updated to reflect the committed changes.