1 =======================
3 =======================
11 libc++ is an implementation of the C++ standard library targeting C++11 or later.
13 In C++03, the library implements the C++11 standard using C++11 language extensions provided
16 This document tracks the C++11 extensions libc++ requires, the C++11 extensions it provides,
17 and how to write minimal C++11 inside libc++.
19 Required C++11 Compiler Extensions
20 ==================================
22 Clang provides a large subset of C++11 in C++03 as an extension. The features
23 libc++ expects Clang to provide are:
26 * RValue references and perfect forwarding.
28 * defaulted and deleted Functions.
29 * reference qualified Functions
32 There are also features that Clang *does not* provide as an extension in C++03
35 * ``constexpr`` and ``noexcept``
36 * Trailing return types.
37 * ``>>`` without a space.
40 Provided C++11 Library Extensions
41 =================================
44 The C++11 extensions libc++ provides in C++03 are currently undergoing change. Existing extensions
45 may be removed in the future. New users are strongly discouraged depending on these extension
48 This section will be updated once the libc++ developer community has further discussed the
49 future of C++03 with libc++.