[libc-commits] [PATCH] D129920: [libc] Trivial implementation of std::optional

Jeff Bailey via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jul 15 22:38:37 PDT 2022


jeffbailey created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
jeffbailey requested review of this revision.

This class has only the minimum functionality in it to provide what the
TZ variable parsing needs.  In particular, the standard makes guarantees
about how trivial the destructors are, throws an expception if it's used
incorrectly, etc.  There are also missing features.

Tested:
Trivial testsuite added, and use in development.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129920

Files:
  libc/src/__support/CPP/CMakeLists.txt
  libc/src/__support/CPP/Optional.h
  libc/test/src/__support/CPP/CMakeLists.txt
  libc/test/src/__support/CPP/optional_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129920.445186.patch
Type: text/x-patch
Size: 3863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220716/661f6828/attachment-0001.bin>


More information about the libc-commits mailing list