Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
non_constructible_dummy.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_MANIPULATION_NON_CONSTRUCTIBLE_DUMMY_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_MANIPULATION_NON_CONSTRUCTIBLE_DUMMY_HPP_
7
8// parasoft-begin-suppress CERT_C-EXP37-a-3 "False positive: The rule does not mention naming all parameters"
9// parasoft-begin-suppress AUTOSAR-A7_1_5-a-2 "Trailing return syntax permitted by A7-1-5 Permit #1 v1.0.0"
10
11namespace arene {
12namespace base {
13/// @brief A special dummy class that cannot be constructed. It can be used as a substitute argument for copy/move
14/// constructors or assignment operators that should be deleted, or any other place where a type is required, but not
15/// desired.
17 public:
18 /// @brief Not default constructible
19 explicit non_constructible_dummy() = delete;
20 /// @brief Not copyable
22 /// @brief Not movable
24 /// @brief Not copyable
26 /// @brief Not movable
28 /// @brief Not destructible
30};
31
32} // namespace base
33} // namespace arene
34
35#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_MANIPULATION_NON_CONSTRUCTIBLE_DUMMY_HPP_
A special dummy class that cannot be constructed. It can be used as a substitute argument for copy/mo...
Definition non_constructible_dummy.hpp:16
non_constructible_dummy(non_constructible_dummy &&)=delete
Not movable.
~non_constructible_dummy()=delete
Not destructible.
non_constructible_dummy()=delete
Not default constructible.
auto operator=(non_constructible_dummy &&) -> non_constructible_dummy &=delete
Not movable.
auto operator=(non_constructible_dummy const &) -> non_constructible_dummy &=delete
Not copyable.
non_constructible_dummy(non_constructible_dummy const &)=delete
Not copyable.
Definition array_exceptions_disabled.cpp:11
Copyright 2026, Toyota Motor Corporation.
Definition array_exceptions_disabled.cpp:10