|
|
memory_resource * | cetl::pmr::null_memory_resource () noexcept |
| |
|
memory_resource * | cetl::pmr::new_delete_resource () noexcept |
| |
|
memory_resource * | cetl::pmr::get_default_resource () noexcept |
| |
|
memory_resource * | cetl::pmr::set_default_resource (memory_resource *mr) noexcept |
| |
| template<typename InputIt, typename ForwardIt> |
| ForwardIt | cetl::uninitialized_move (InputIt first, InputIt last, ForwardIt destination) |
| |
| template<typename T> |
| constexpr optional< std::decay_t< T > > | cetl::make_optional (T &&value) |
| |
| template<std::size_t Ix, typename... Ts> |
| CETL_NODISCARD constexpr variant_alternative_t< Ix, variant< Ts... > > & | cetl::get (variant< Ts... > &var) |
| |
| template<std::size_t Ix, typename... Ts> |
| CETL_NODISCARD constexpr std::add_pointer_t< variant_alternative_t< Ix, variant< Ts... > > > | cetl::get_if (variant< Ts... > *const var) noexcept |
| |
| template<typename Fun, typename... Vs> |
| constexpr decltype(auto) | cetl::visit (Fun &&fun, Vs &&... vars) |
| |
| template<typename T, typename... Ts> |
| CETL_NODISCARD constexpr bool | cetl::holds_alternative (const variant< Ts... > &var) noexcept |
| |
CETL polyfill header for C++17 types.
- Copyright
- Copyright (C) OpenCyphal Development Team <opencyphal.org> Copyright Amazon.com Inc. or its affiliates. SPDX-License-Identifier: MIT
- Warning
- This header violates AUTOSAR-14 M7-3-6, A17-0-1, and A16-0-1 (and possibly other rules). Don't use CETL polyfill headers in AUTOSAR code.
-
polyfill headers cannot be used if CETL_H_ERASE is defined.
CETL polyfill headers will provide the CETL type as an aliased standard type in the std namespace when compiling using older C++ libraries and will automatically provide types from the standard library when compiling using newer C++ libraries. This allows for causal use of CETL as a true polyfill library but does violate certain coding standards. As such, for more critical software we recommend not using these headers but including the types you use from cetl::pf17 directly.
For example, (TODO: polyfill 17 examples.)