Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
remove_cvref.hpp
Go to the documentation of this file.
1// Copyright 2024, Toyota Motor Corporation
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_REMOVE_CVREF_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_REMOVE_CVREF_HPP_
7
8// IWYU pragma: private, include "arene/base/type_traits.hpp"
9// IWYU pragma: friend "(arene/base(?!/tests)|stdlib/include/stdlib_detail)/.*"
10
11#include "arene/base/stdlib_choice/remove_cv.hpp"
12#include "arene/base/stdlib_choice/remove_reference.hpp"
13
14namespace arene {
15namespace base {
16
17/// @brief Backport of std::remove_cv_t
18/// @tparam T The source type
19// parasoft-begin-suppress AUTOSAR-A2_7_3 "False positive: documented"
20template <typename T>
22// parasoft-end-suppress AUTOSAR-A2_7_3
23
24/// @brief Backport of std::remove_reference_t
25/// @tparam T The source type
26// parasoft-begin-suppress AUTOSAR-A2_7_3 "False positive: documented"
27template <typename T>
29// parasoft-end-suppress AUTOSAR-A2_7_3
30
31/// @brief Backport of std::remove_cvref_t
32/// @tparam T The source type
33// parasoft-begin-suppress AUTOSAR-A2_7_3 "False positive: documented"
34template <typename T>
36// parasoft-end-suppress AUTOSAR-A2_7_3
37
38/// @brief Backport of std::remove_cvref
39/// @tparam T The source type
40// parasoft-begin-suppress AUTOSAR-A2_7_3 "False positive: documented"
41template <typename T>
43 public:
44 /// @brief result type
46};
47// parasoft-end-suppress AUTOSAR-A2_7_3
48
49} // namespace base
50} // namespace arene
51
52#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_REMOVE_CVREF_HPP_
Backport of std::remove_cvref.
Definition remove_cvref.hpp:42
remove_cvref_t< T > type
result type
Definition remove_cvref.hpp:45
T type
The resulting type.
Definition remove_cv.hpp:29
T type
The resulting type.
Definition remove_reference.hpp:21
Definition accumulate.hpp:37
typename std::remove_reference< T >::type remove_reference_t
Backport of std::remove_reference_t.
Definition remove_cvref.hpp:28
typename std::remove_cv< T >::type remove_cv_t
Backport of std::remove_cv_t.
Definition remove_cvref.hpp:21
remove_cv_t< remove_reference_t< T > > remove_cvref_t
Backport of std::remove_cvref_t.
Definition remove_cvref.hpp:35
Definition accumulate.hpp:36