tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
nothrow.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_NEW_NOTHROW_HPP
5#define TETL_NEW_NOTHROW_HPP
6
7namespace etl {
8
9/// \brief etl::nothrow_t is an empty class type used to disambiguate the
10/// overloads of throwing and non-throwing allocation functions.
11struct nothrow_t {
12 explicit nothrow_t() = default;
13};
14
15/// \brief etl::nothrow is a constant of type etl::nothrow_t used to
16/// disambiguate the overloads of throwing and non-throwing allocation
17/// functions.
18inline constexpr auto nothrow = etl::nothrow_t{};
19
20} // namespace etl
21
22#endif // TETL_NEW_NOTHROW_HPP
Definition adjacent_find.hpp:9
constexpr auto nothrow
etl::nothrow is a constant of type etl::nothrow_t used to disambiguate the overloads of throwing and ...
Definition nothrow.hpp:18
etl::nothrow_t is an empty class type used to disambiguate the overloads of throwing and non-throwing...
Definition nothrow.hpp:11
nothrow_t()=default