Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 1 | .. _using-libcxx: |
| 2 | |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 3 | ============ |
| 4 | Using libc++ |
| 5 | ============ |
| 6 | |
| 7 | .. contents:: |
| 8 | :local: |
| 9 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 10 | Usually, libc++ is packaged and shipped by a vendor through some delivery vehicle |
| 11 | (operating system distribution, SDK, toolchain, etc) and users don't need to do |
| 12 | anything special in order to use the library. |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 13 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 14 | This page contains information about configuration knobs that can be used by |
| 15 | users when they know libc++ is used by their toolchain, and how to use libc++ |
| 16 | when it is not the default library used by their toolchain. |
| 17 | |
| 18 | |
| 19 | Using a different version of the C++ Standard |
| 20 | ============================================= |
| 21 | |
| 22 | Libc++ implements the various versions of the C++ Standard. Changing the version of |
| 23 | the standard can be done by passing ``-std=c++XY`` to the compiler. Libc++ will |
| 24 | automatically detect what Standard is being used and will provide functionality that |
| 25 | matches that Standard in the library. |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 26 | |
| 27 | .. code-block:: bash |
| 28 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 29 | $ clang++ -std=c++17 test.cpp |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 30 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 31 | .. warning:: |
| 32 | Using ``-std=c++XY`` with a version of the Standard that has not been ratified yet |
| 33 | is considered unstable. Libc++ reserves the right to make breaking changes to the |
| 34 | library until the standard has been ratified. |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 35 | |
Eric Fiselier | 02cea5e | 2018-07-27 03:07:09 +0000 | [diff] [blame] | 36 | |
Eric Fiselier | fa43a5c | 2016-05-03 22:32:08 +0000 | [diff] [blame] | 37 | Using libc++experimental and ``<experimental/...>`` |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 38 | =================================================== |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 39 | |
Eric Fiselier | fa43a5c | 2016-05-03 22:32:08 +0000 | [diff] [blame] | 40 | Libc++ provides implementations of experimental technical specifications |
| 41 | in a separate library, ``libc++experimental.a``. Users of ``<experimental/...>`` |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 42 | headers may be required to link ``-lc++experimental``. Note that not all |
| 43 | vendors ship ``libc++experimental.a``, and as a result, you may not be |
| 44 | able to use those experimental features. |
Eric Fiselier | fa43a5c | 2016-05-03 22:32:08 +0000 | [diff] [blame] | 45 | |
| 46 | .. code-block:: bash |
| 47 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 48 | $ clang++ test.cpp -lc++experimental |
Eric Fiselier | fa43a5c | 2016-05-03 22:32:08 +0000 | [diff] [blame] | 49 | |
| 50 | .. warning:: |
| 51 | Experimental libraries are Experimental. |
| 52 | * The contents of the ``<experimental/...>`` headers and ``libc++experimental.a`` |
| 53 | library will not remain compatible between versions. |
| 54 | * No guarantees of API or ABI stability are provided. |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 55 | * When the standardized version of an experimental feature is implemented, |
Louis Dionne | 3767713 | 2019-06-11 14:48:40 +0000 | [diff] [blame] | 56 | the experimental feature is removed two releases after the non-experimental |
| 57 | version has shipped. The full policy is explained :ref:`here <experimental features>`. |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 58 | |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 59 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 60 | Using libc++ when it is not the system default |
| 61 | ============================================== |
| 62 | |
| 63 | On systems where libc++ is provided but is not the default, Clang provides a flag |
| 64 | called ``-stdlib=`` that can be used to decide which standard library is used. |
| 65 | Using ``-stdlib=libc++`` will select libc++: |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 66 | |
| 67 | .. code-block:: bash |
| 68 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 69 | $ clang++ -stdlib=libc++ test.cpp |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 70 | |
Louis Dionne | e474551 | 2021-09-07 12:55:48 -0400 | [diff] [blame] | 71 | On systems where libc++ is the library in use by default such as macOS and FreeBSD, |
| 72 | this flag is not required. |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 73 | |
| 74 | |
| 75 | .. _alternate libcxx: |
| 76 | |
| 77 | Using a custom built libc++ |
| 78 | =========================== |
| 79 | |
| 80 | Most compilers provide a way to disable the default behavior for finding the |
| 81 | standard library and to override it with custom paths. With Clang, this can |
| 82 | be done with: |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 83 | |
| 84 | .. code-block:: bash |
| 85 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 86 | $ clang++ -nostdinc++ -nostdlib++ \ |
| 87 | -isystem <install>/include/c++/v1 \ |
| 88 | -L <install>/lib \ |
| 89 | -Wl,-rpath,<install>/lib \ |
| 90 | -lc++ \ |
| 91 | test.cpp |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 92 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 93 | The option ``-Wl,-rpath,<install>/lib`` adds a runtime library search path, |
| 94 | which causes the system's dynamic linker to look for libc++ in ``<install>/lib`` |
| 95 | whenever the program is loaded. |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 96 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 97 | GCC does not support the ``-nostdlib++`` flag, so one must use ``-nodefaultlibs`` |
| 98 | instead. Since that removes all the standard system libraries and not just libc++, |
| 99 | the system libraries must be re-added manually. For example: |
Eric Fiselier | d720d1f | 2015-08-22 19:40:49 +0000 | [diff] [blame] | 100 | |
| 101 | .. code-block:: bash |
| 102 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 103 | $ g++ -nostdinc++ -nodefaultlibs \ |
| 104 | -isystem <install>/include/c++/v1 \ |
| 105 | -L <install>/lib \ |
| 106 | -Wl,-rpath,<install>/lib \ |
| 107 | -lc++ -lc++abi -lm -lc -lgcc_s -lgcc \ |
| 108 | test.cpp |
Eric Fiselier | 41ee431 | 2016-01-20 01:26:30 +0000 | [diff] [blame] | 109 | |
| 110 | |
| 111 | GDB Pretty printers for libc++ |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 112 | ============================== |
Eric Fiselier | 41ee431 | 2016-01-20 01:26:30 +0000 | [diff] [blame] | 113 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 114 | GDB does not support pretty-printing of libc++ symbols by default. However, libc++ does |
| 115 | provide pretty-printers itself. Those can be used as: |
Eric Fiselier | 41ee431 | 2016-01-20 01:26:30 +0000 | [diff] [blame] | 116 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 117 | .. code-block:: bash |
Eric Fiselier | 41ee431 | 2016-01-20 01:26:30 +0000 | [diff] [blame] | 118 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 119 | $ gdb -ex "source <libcxx>/utils/gdb/libcxx/printers.py" \ |
| 120 | -ex "python register_libcxx_printer_loader()" \ |
| 121 | <args> |
Eric Fiselier | b382530 | 2016-11-13 23:00:30 +0000 | [diff] [blame] | 122 | |
| 123 | |
| 124 | Libc++ Configuration Macros |
| 125 | =========================== |
| 126 | |
| 127 | Libc++ provides a number of configuration macros which can be used to enable |
| 128 | or disable extended libc++ behavior, including enabling "debug mode" or |
| 129 | thread safety annotations. |
| 130 | |
| 131 | **_LIBCPP_DEBUG**: |
Eric Fiselier | fb82543 | 2016-12-28 04:58:52 +0000 | [diff] [blame] | 132 | See :ref:`using-debug-mode` for more information. |
Eric Fiselier | b382530 | 2016-11-13 23:00:30 +0000 | [diff] [blame] | 133 | |
| 134 | **_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS**: |
| 135 | This macro is used to enable -Wthread-safety annotations on libc++'s |
Jennifer Chukwu | b978809 | 2021-04-17 20:34:06 +0530 | [diff] [blame] | 136 | ``std::mutex`` and ``std::lock_guard``. By default, these annotations are |
Eric Fiselier | b382530 | 2016-11-13 23:00:30 +0000 | [diff] [blame] | 137 | disabled and must be manually enabled by the user. |
Shoaib Meenai | f36e988 | 2016-12-05 19:40:12 +0000 | [diff] [blame] | 138 | |
| 139 | **_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS**: |
| 140 | This macro is used to disable all visibility annotations inside libc++. |
| 141 | Defining this macro and then building libc++ with hidden visibility gives a |
| 142 | build of libc++ which does not export any symbols, which can be useful when |
| 143 | building statically for inclusion into another library. |
Eric Fiselier | 41b686e | 2016-12-08 23:57:08 +0000 | [diff] [blame] | 144 | |
Shoaib Meenai | 2ba461c | 2017-04-13 20:13:32 +0000 | [diff] [blame] | 145 | **_LIBCPP_DISABLE_EXTERN_TEMPLATE**: |
| 146 | This macro is used to disable extern template declarations in the libc++ |
| 147 | headers. The intended use case is for clients who wish to use the libc++ |
| 148 | headers without taking a dependency on the libc++ library itself. |
| 149 | |
Eric Fiselier | a7a14ed | 2017-01-13 22:02:08 +0000 | [diff] [blame] | 150 | **_LIBCPP_DISABLE_ADDITIONAL_DIAGNOSTICS**: |
| 151 | This macro disables the additional diagnostics generated by libc++ using the |
| 152 | `diagnose_if` attribute. These additional diagnostics include checks for: |
| 153 | |
Louis Dionne | 878a3a8 | 2018-12-06 21:46:17 +0000 | [diff] [blame] | 154 | * Giving `set`, `map`, `multiset`, `multimap` and their `unordered_` |
| 155 | counterparts a comparator which is not const callable. |
| 156 | * Giving an unordered associative container a hasher that is not const |
| 157 | callable. |
Eric Fiselier | a7a14ed | 2017-01-13 22:02:08 +0000 | [diff] [blame] | 158 | |
Shoaib Meenai | cfd1960 | 2017-10-09 19:25:17 +0000 | [diff] [blame] | 159 | **_LIBCPP_NO_VCRUNTIME**: |
| 160 | Microsoft's C and C++ headers are fairly entangled, and some of their C++ |
| 161 | headers are fairly hard to avoid. In particular, `vcruntime_new.h` gets pulled |
| 162 | in from a lot of other headers and provides definitions which clash with |
| 163 | libc++ headers, such as `nothrow_t` (note that `nothrow_t` is a struct, so |
| 164 | there's no way for libc++ to provide a compatible definition, since you can't |
| 165 | have multiple definitions). |
| 166 | |
| 167 | By default, libc++ solves this problem by deferring to Microsoft's vcruntime |
| 168 | headers where needed. However, it may be undesirable to depend on vcruntime |
| 169 | headers, since they may not always be available in cross-compilation setups, |
| 170 | or they may clash with other headers. The `_LIBCPP_NO_VCRUNTIME` macro |
| 171 | prevents libc++ from depending on vcruntime headers. Consequently, it also |
| 172 | prevents libc++ headers from being interoperable with vcruntime headers (from |
| 173 | the aforementioned clashes), so users of this macro are promising to not |
| 174 | attempt to combine libc++ headers with the problematic vcruntime headers. This |
| 175 | macro also currently prevents certain `operator new`/`operator delete` |
| 176 | replacement scenarios from working, e.g. replacing `operator new` and |
| 177 | expecting a non-replaced `operator new[]` to call the replaced `operator new`. |
| 178 | |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 179 | **_LIBCPP_ENABLE_NODISCARD**: |
| 180 | Allow the library to add ``[[nodiscard]]`` attributes to entities not specified |
| 181 | as ``[[nodiscard]]`` by the current language dialect. This includes |
| 182 | backporting applications of ``[[nodiscard]]`` from newer dialects and |
| 183 | additional extended applications at the discretion of the library. All |
| 184 | additional applications of ``[[nodiscard]]`` are disabled by default. |
| 185 | See :ref:`Extended Applications of [[nodiscard]] <nodiscard extension>` for |
| 186 | more information. |
| 187 | |
| 188 | **_LIBCPP_DISABLE_NODISCARD_EXT**: |
| 189 | This macro prevents the library from applying ``[[nodiscard]]`` to entities |
| 190 | purely as an extension. See :ref:`Extended Applications of [[nodiscard]] <nodiscard extension>` |
| 191 | for more information. |
| 192 | |
Louis Dionne | ded5b77 | 2019-03-12 20:10:06 +0000 | [diff] [blame] | 193 | **_LIBCPP_DISABLE_DEPRECATION_WARNINGS**: |
| 194 | This macro disables warnings when using deprecated components. For example, |
| 195 | using `std::auto_ptr` when compiling in C++11 mode will normally trigger a |
| 196 | warning saying that `std::auto_ptr` is deprecated. If the macro is defined, |
| 197 | no warning will be emitted. By default, this macro is not defined. |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 198 | |
Eric Fiselier | ddd7779 | 2017-02-17 03:25:08 +0000 | [diff] [blame] | 199 | C++17 Specific Configuration Macros |
| 200 | ----------------------------------- |
| 201 | **_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES**: |
| 202 | This macro is used to re-enable all the features removed in C++17. The effect |
| 203 | is equivalent to manually defining each macro listed below. |
| 204 | |
Eric Fiselier | 65d5b4c | 2017-02-17 03:30:25 +0000 | [diff] [blame] | 205 | **_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR**: |
Arthur O'Dwyer | a6b5107 | 2021-05-24 18:36:17 -0400 | [diff] [blame] | 206 | This macro is used to re-enable `auto_ptr`. |
| 207 | |
| 208 | **_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS**: |
| 209 | This macro is used to re-enable the `binder1st`, `binder2nd`, |
| 210 | `pointer_to_unary_function`, `pointer_to_binary_function`, `mem_fun_t`, |
| 211 | `mem_fun1_t`, `mem_fun_ref_t`, `mem_fun1_ref_t`, `const_mem_fun_t`, |
| 212 | `const_mem_fun1_t`, `const_mem_fun_ref_t`, and `const_mem_fun1_ref_t` |
| 213 | class templates, and the `bind1st`, `bind2nd`, `mem_fun`, `mem_fun_ref`, |
| 214 | and `ptr_fun` functions. |
| 215 | |
| 216 | **_LIBCPP_ENABLE_CXX17_REMOVED_RANDOM_SHUFFLE**: |
| 217 | This macro is used to re-enable the `random_shuffle` algorithm. |
| 218 | |
| 219 | **_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS**: |
| 220 | This macro is used to re-enable `set_unexpected`, `get_unexpected`, and |
| 221 | `unexpected`. |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 222 | |
Marek Kurdej | 24b4c51 | 2021-01-07 12:29:04 +0100 | [diff] [blame] | 223 | C++20 Specific Configuration Macros: |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 224 | ------------------------------------ |
| 225 | **_LIBCPP_DISABLE_NODISCARD_AFTER_CXX17**: |
| 226 | This macro can be used to disable diagnostics emitted from functions marked |
| 227 | ``[[nodiscard]]`` in dialects after C++17. See :ref:`Extended Applications of [[nodiscard]] <nodiscard extension>` |
| 228 | for more information. |
| 229 | |
Arthur O'Dwyer | a6b5107 | 2021-05-24 18:36:17 -0400 | [diff] [blame] | 230 | **_LIBCPP_ENABLE_CXX20_REMOVED_FEATURES**: |
| 231 | This macro is used to re-enable all the features removed in C++20. The effect |
| 232 | is equivalent to manually defining each macro listed below. |
| 233 | |
| 234 | **_LIBCPP_ENABLE_CXX20_REMOVED_ALLOCATOR_MEMBERS**: |
| 235 | This macro is used to re-enable redundant members of `allocator<T>`, |
| 236 | including `pointer`, `reference`, `rebind`, `address`, `max_size`, |
| 237 | `construct`, `destroy`, and the two-argument overload of `allocate`. |
Arthur O'Dwyer | a6b5107 | 2021-05-24 18:36:17 -0400 | [diff] [blame] | 238 | |
Arthur O'Dwyer | f5486c8 | 2021-05-25 14:34:18 -0400 | [diff] [blame] | 239 | **_LIBCPP_ENABLE_CXX20_REMOVED_BINDER_TYPEDEFS**: |
| 240 | This macro is used to re-enable the `argument_type`, `result_type`, |
| 241 | `first_argument_type`, and `second_argument_type` members of class |
| 242 | templates such as `plus`, `logical_not`, `hash`, and `owner_less`. |
| 243 | |
Arthur O'Dwyer | a6b5107 | 2021-05-24 18:36:17 -0400 | [diff] [blame] | 244 | **_LIBCPP_ENABLE_CXX20_REMOVED_NEGATORS**: |
| 245 | This macro is used to re-enable `not1`, `not2`, `unary_negate`, |
| 246 | and `binary_negate`. |
| 247 | |
| 248 | **_LIBCPP_ENABLE_CXX20_REMOVED_RAW_STORAGE_ITERATOR**: |
| 249 | This macro is used to re-enable `raw_storage_iterator`. |
| 250 | |
wmbat | f5b3376 | 2021-07-02 17:08:36 +0000 | [diff] [blame] | 251 | **_LIBCPP_ENABLE_CXX20_REMOVED_TYPE_TRAITS**: |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 252 | This macro is used to re-enable `is_literal_type`, `is_literal_type_v`, |
wmbat | f5b3376 | 2021-07-02 17:08:36 +0000 | [diff] [blame] | 253 | `result_of` and `result_of_t`. |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 254 | |
Louis Dionne | 4b1b70d | 2021-07-06 10:39:01 -0400 | [diff] [blame] | 255 | |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 256 | Libc++ Extensions |
| 257 | ================= |
| 258 | |
| 259 | This section documents various extensions provided by libc++, how they're |
| 260 | provided, and any information regarding how to use them. |
| 261 | |
| 262 | .. _nodiscard extension: |
| 263 | |
| 264 | Extended applications of ``[[nodiscard]]`` |
| 265 | ------------------------------------------ |
| 266 | |
| 267 | The ``[[nodiscard]]`` attribute is intended to help users find bugs where |
| 268 | function return values are ignored when they shouldn't be. After C++17 the |
| 269 | C++ standard has started to declared such library functions as ``[[nodiscard]]``. |
| 270 | However, this application is limited and applies only to dialects after C++17. |
| 271 | Users who want help diagnosing misuses of STL functions may desire a more |
| 272 | liberal application of ``[[nodiscard]]``. |
| 273 | |
| 274 | For this reason libc++ provides an extension that does just that! The |
| 275 | extension must be enabled by defining ``_LIBCPP_ENABLE_NODISCARD``. The extended |
| 276 | applications of ``[[nodiscard]]`` takes two forms: |
| 277 | |
| 278 | 1. Backporting ``[[nodiscard]]`` to entities declared as such by the |
| 279 | standard in newer dialects, but not in the present one. |
| 280 | |
Arthur O'Dwyer | 108facb | 2021-04-05 14:56:03 -0400 | [diff] [blame] | 281 | 2. Extended applications of ``[[nodiscard]]``, at the library's discretion, |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 282 | applied to entities never declared as such by the standard. |
| 283 | |
| 284 | Users may also opt-out of additional applications ``[[nodiscard]]`` using |
| 285 | additional macros. |
| 286 | |
| 287 | Applications of the first form, which backport ``[[nodiscard]]`` from a newer |
Arthur O'Dwyer | 108facb | 2021-04-05 14:56:03 -0400 | [diff] [blame] | 288 | dialect, may be disabled using macros specific to the dialect in which it was |
| 289 | added. For example, ``_LIBCPP_DISABLE_NODISCARD_AFTER_CXX17``. |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 290 | |
| 291 | Applications of the second form, which are pure extensions, may be disabled |
| 292 | by defining ``_LIBCPP_DISABLE_NODISCARD_EXT``. |
| 293 | |
| 294 | |
| 295 | Entities declared with ``_LIBCPP_NODISCARD_EXT`` |
| 296 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 297 | |
| 298 | This section lists all extended applications of ``[[nodiscard]]`` to entities |
| 299 | which no dialect declares as such (See the second form described above). |
| 300 | |
Nico Weber | 471b10a | 2019-04-03 18:13:08 +0000 | [diff] [blame] | 301 | * ``adjacent_find`` |
| 302 | * ``all_of`` |
| 303 | * ``any_of`` |
| 304 | * ``binary_search`` |
| 305 | * ``clamp`` |
| 306 | * ``count_if`` |
| 307 | * ``count`` |
| 308 | * ``equal_range`` |
| 309 | * ``equal`` |
| 310 | * ``find_end`` |
| 311 | * ``find_first_of`` |
| 312 | * ``find_if_not`` |
| 313 | * ``find_if`` |
| 314 | * ``find`` |
Roman Lebedev | b5959fa | 2018-09-22 17:54:48 +0000 | [diff] [blame] | 315 | * ``get_temporary_buffer`` |
Nico Weber | 471b10a | 2019-04-03 18:13:08 +0000 | [diff] [blame] | 316 | * ``includes`` |
| 317 | * ``is_heap_until`` |
| 318 | * ``is_heap`` |
| 319 | * ``is_partitioned`` |
| 320 | * ``is_permutation`` |
| 321 | * ``is_sorted_until`` |
| 322 | * ``is_sorted`` |
| 323 | * ``lexicographical_compare`` |
| 324 | * ``lower_bound`` |
| 325 | * ``max_element`` |
| 326 | * ``max`` |
| 327 | * ``min_element`` |
| 328 | * ``min`` |
| 329 | * ``minmax_element`` |
| 330 | * ``minmax`` |
| 331 | * ``mismatch`` |
| 332 | * ``none_of`` |
| 333 | * ``remove_if`` |
| 334 | * ``remove`` |
| 335 | * ``search_n`` |
| 336 | * ``search`` |
| 337 | * ``unique`` |
| 338 | * ``upper_bound`` |
Louis Dionne | 346587e | 2019-08-13 11:12:28 +0000 | [diff] [blame] | 339 | * ``lock_guard``'s constructors |
Arthur O'Dwyer | 108facb | 2021-04-05 14:56:03 -0400 | [diff] [blame] | 340 | * ``as_const`` |
Louis Dionne | 1462d4d | 2020-05-28 14:28:38 -0400 | [diff] [blame] | 341 | * ``bit_cast`` |
Arthur O'Dwyer | 108facb | 2021-04-05 14:56:03 -0400 | [diff] [blame] | 342 | * ``forward`` |
| 343 | * ``move`` |
| 344 | * ``move_if_noexcept`` |
| 345 | * ``identity::operator()`` |
| 346 | * ``to_integer`` |
| 347 | * ``to_underlying`` |