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
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_
STL namespace.
typedef nullptr_t
The type of nullptr.
Definition cstddef.hpp:33
::ptrdiff_t ptrdiff_t
A type suitable for holding the difference between two pointers.
Definition cstddef.hpp:31
::max_align_t max_align_t
A POD type which has the maximum alignment required for any built-in type.
Definition cstddef.hpp:35
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29