Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
nothrow_t.hpp
Go to the documentation of this file.
1// Copyright 2026, 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_NOTHROW_T_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_NOTHROW_T_HPP_
7
8// IWYU pragma: private, include <new>
9// IWYU pragma: friend "stdlib_detail/.*"
10
11// parasoft-begin-suppress CERT_CPP-DCL58-a-2 "Part of a standard library implementation"
12// parasoft-begin-suppress AUTOSAR-A17_6_1-a-2 "Part of a standard library implementation"
13
14namespace std {
15
16/// @brief Tag type used to disambiguate the overloads of throwing and non-throwing allocation functions
17class nothrow_t {
18 public:
19 /// @brief Default explicit constructor
20 explicit nothrow_t() = default;
21};
22
23/// @brief A constant of @c std::nothrow_t
24extern nothrow_t const nothrow;
25
26} // namespace std
27
28#endif // INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_NOTHROW_T_HPP_
Tag type used to disambiguate the overloads of throwing and non-throwing allocation functions.
Definition nothrow_t.hpp:17
nothrow_t()=default
Default explicit constructor.
nothrow_t const nothrow
A constant of std::nothrow_t.
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