tree: 9463368e59637a598e9ee7710aba31acc37360a4 [path history] [tgz]
  1. type_traits/
  2. utility/
  3. .clang-tidy
  4. algorithm.h
  5. array.h
  6. atomic.h
  7. bit.h
  8. bitset.h
  9. CMakeLists.txt
  10. cstddef.h
  11. expected.h
  12. functional.h
  13. limits.h
  14. new.cpp
  15. new.h
  16. optional.h
  17. README.md
  18. span.h
  19. string.h
  20. string_view.h
  21. stringstream.h
  22. type_traits.h
  23. utility.h
libc/src/__support/CPP/README.md

This directory contains partial re-implementations of some C++ standard library utilities. They are for use with internal LLVM libc code and tests.

More utilities can be added on an as needed basis. There are certain rules to be followed for future changes and additions:

  1. Only two kind of headers can be included: Other headers from this directory, and free standing C headers.
  2. Free standing C headers are to be included as C headers and not as C++ headers. That is, use #include <stddef.h> and not #include <cstddef>.
  3. The utilities should be defined in the namespace LIBC_NAMESPACE::cpp. The higher level namespace should have a __ prefix to avoid symbol name pollution when the utilities are used in implementation of public functions.