This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Avoid including <tuple> in compressed_pair.h
ClosedPublic

Authored by philnik on Sep 5 2022, 4:11 PM.

Details

Summary

compressed_pair is widely used in the library, but most of the uses don't use the tuple parts. To avoid including <tuple> everywhere, use the forward declaration instead in compressed_pair.h

Diff Detail

Event Timeline

philnik created this revision.Sep 5 2022, 4:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 5 2022, 4:11 PM
philnik requested review of this revision.Sep 5 2022, 4:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 5 2022, 4:11 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Sep 7 2022, 1:51 PM
This revision is now accepted and ready to land.Sep 7 2022, 1:51 PM
philnik updated this revision to Diff 460994.Sep 17 2022, 5:30 AM
  • Rebased
  • Try to fix CI
This revision was automatically updated to reflect the committed changes.