This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Move monostate to its own header.
ClosedPublic

Authored by Mordante on Jul 7 2021, 12:31 PM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG321c2ea91cb1: [libc++][NFC] Move monostate to its own header.
Summary

The format library uses std::monostate, but not a std::variant.
Moving std::monostate to its own header allows the format library to
reduce the amount of included code.

Diff Detail

Event Timeline

Mordante created this revision.Jul 7 2021, 12:31 PM
Mordante requested review of this revision.Jul 7 2021, 12:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2021, 12:31 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Jul 7 2021, 1:24 PM
This revision is now accepted and ready to land.Jul 7 2021, 1:24 PM
Mordante updated this revision to Diff 357134.Jul 7 2021, 10:37 PM

Add the proper C++ version guards.

This revision was automatically updated to reflect the committed changes.