tree: a8268375618283408cebe968331c8777ef6008d9 [path history] [tgz]
  1. include/
  2. test/
  3. BUILD.gn
  4. BUILD.zircon.gn
  5. OWNERS
  6. README.md
zircon/system/ulib/stdcompat/README.md

This library provides polyfills for different versions of the standard library.

Constructs are withing namespaces for each specific version, such as “cpp17, cpp20”.

Polyfills will only be used when the standard version is not available.

In some cases, some free functions may be provided. These functions fill gaps of classes that are extended in later iterations of the standard (e.g. std::string_view::starts_with). In the above example, std::string_view polyfill would live in cpp17::string_view and a free function should exist in cpp20::starts_with(std::string_view, prefix).