mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 13:51:05 +00:00
d32daea7c1
- Add Getting Started section that outlines how to integrate pw_tokenizer. - Add example ELF file for experimenting with the database.py commands. Change-Id: I1393e5bb47bf18e42599867cada5de022ed31642
32 lines
955 B
ReStructuredText
32 lines
955 B
ReStructuredText
.. _chapter-pw-minimal-cpp-stdlib:
|
|
|
|
.. default-domain:: cpp
|
|
|
|
---------------------
|
|
pw_minimal_cpp_stdlib
|
|
---------------------
|
|
The ``pw_minimal_cpp_stdlib`` module provides an extremely limited
|
|
implementation of the C++ Standard Library. This module falls far, far short of
|
|
providing a complete C++ Standard Library and should only be used in dire
|
|
situations where you happen to be compiling with C++17 but don't have a C++
|
|
Standard Library available to you.
|
|
|
|
The C++ Standard Library headers (e.g. ``<cstdint>`` and ``<type_traits>``) are
|
|
defined in ``public/``. These files are symlinks to their implementations in
|
|
``public/internal/``.
|
|
|
|
.. tip::
|
|
|
|
You can automatically recreate the symlinks in ``public/`` by executing the
|
|
following Bash code from ``pw_minimal_cpp_stdlib/public/``.
|
|
|
|
.. code-block:: bash
|
|
|
|
for f in $(ls internal/); do ln -s internal/$f ${f%.h}; done
|
|
|
|
Requirements
|
|
============
|
|
- C++17
|
|
- gcc or clang
|
|
- The C Standard Library
|