Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
void_t.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_STDLIB_INCLUDE_STDLIB_DETAIL_VOID_T_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_VOID_T_HPP_
7
8#include "arene/base/constraints.hpp"
9
10// parasoft-begin-suppress CERT_CPP-DCL58-a-2 "Part of a standard library implementation"
11// parasoft-begin-suppress AUTOSAR-A17_6_1-a-2 "Part of a standard library implementation"
12
13// IWYU pragma: private
14// IWYU pragma: friend "stdlib_detail/.*"
15
16namespace std {
17
18// parasoft-begin-suppress AUTOSAR-A2_7_3-a-2 "False positive: the typedef *is* preceded by a comment with @brief"
19/// @brief An alias for @c void that accepts any number of type parameters, used for substitution checks template
20/// @tparam Args Any number of template parameters
21template <class... Args>
22using void_t = arene::base::void_t<Args...>;
23// parasoft-end-suppress AUTOSAR-A2_7_3-a-2
24
25} // namespace std
26
27#endif // INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_VOID_T_HPP_
constexpr auto operator()(::arene::base::result< void, E > const &value) const noexcept(noexcept(hash< E >{}(std::declval< E const & >()))) -> std::size_t
Calculate the hash of a result.
Definition result.hpp:1827