Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
cstddef.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_CSTDDEF_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_CSTDDEF_HPP_
7
8// parasoft-begin-suppress CERT_CPP-DCL58-a-2 "Part of a standard library implementation"
9// parasoft-begin-suppress AUTOSAR-A17_6_1-a-2 "Part of a standard library implementation"
10// parasoft-begin-suppress AUTOSAR-M17_0_2-a-2 "Part of a standard library implementation"
11// parasoft-begin-suppress CERT_CPP-DCL51-f-3 "Part of a standard library implementation"
12
13// IWYU pragma: private, include <cstddef>
14// IWYU pragma: friend "stdlib_detail/.*"
15
16// parasoft-begin-suppress AUTOSAR-A18_0_1-a-2 "False positive: This is the implementation of <cstddef>"
17// parasoft-begin-suppress AUTOSAR-A1_1_1-d-2 "False positive: This is the implementation of <cstddef>"
18// NOLINTNEXTLINE(hicpp-deprecated-headers)
19#include <stddef.h>
20// parasoft-end-suppress AUTOSAR-A1_1_1-d-2
21// parasoft-end-suppress AUTOSAR-A18_0_1-a-2
22
23namespace std {
24
25// parasoft-begin-suppress AUTOSAR-A2_7_3-a "False positive: all declarations
26// and typedefs *are* preceded by a comment with @brief"
27
28/// @brief A type suitable for holding the size of an object
29using size_t = ::size_t;
30/// @brief A type suitable for holding the difference between two pointers
32/// @brief The type of @c nullptr
33using nullptr_t = decltype(nullptr);
34/// @brief A POD type which has the maximum alignment required for any built-in type
36
37// parasoft-end-suppress AUTOSAR-A2_7_3-a
38
39} // namespace std
40
41#endif // INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_CSTDDEF_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