iceoryx_hoofs 2.0.3
scoped_static.hpp
1// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
2// Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16// SPDX-License-Identifier: Apache-2.0
17#ifndef IOX_HOOFS_CXX_SCOPED_STATIC_HPP
18#define IOX_HOOFS_CXX_SCOPED_STATIC_HPP
19
20#include "iceoryx_hoofs/cxx/generic_raii.hpp"
21
22namespace iox
23{
24namespace cxx
25{
33template <typename T, typename... CTorArgs>
34GenericRAII makeScopedStatic(T& memory, CTorArgs&&... ctorArgs) noexcept;
35} // namespace cxx
36} // namespace iox
37
38#include "iceoryx_hoofs/internal/cxx/scoped_static.inl"
39
40
41#endif // IOX_HOOFS_CXX_SCOPED_STATIC_HPP
building block to easily create free function for logging in a library context
Definition: lockfree_queue.hpp:29