tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
piecewise_construct.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_UTILITY_PIECEWISE_CONSTRUCT_HPP
5#define TETL_UTILITY_PIECEWISE_CONSTRUCT_HPP
6
7#include <etl/_cstddef/size_t.hpp>
8
9namespace etl {
10
11/// \brief etl::piecewise_construct_t is an empty class tag type used to
12/// disambiguate between different functions that take two tuple arguments.
13///
14/// \details The overloads that do not use etl::piecewise_construct_t assume
15/// that each tuple argument becomes the element of a pair. The overloads that
16/// use etl::piecewise_construct_t assume that each tuple argument is used to
17/// construct, piecewise, a new object of specified type, which will become the
18/// element of the pair.
19///
20/// https://en.cppreference.com/w/cpp/utility/piecewise_construct_t
22 explicit piecewise_construct_t() = default;
23};
24
25/// \brief The constant etl::piecewise_construct is an instance of an empty
26/// struct tag type etl::piecewise_construct_t.
28
29} // namespace etl
30
31#endif // TETL_UTILITY_PIECEWISE_CONSTRUCT_HPP
Definition adjacent_find.hpp:9
constexpr auto piecewise_construct
The constant etl::piecewise_construct is an instance of an empty struct tag type etl::piecewise_const...
Definition piecewise_construct.hpp:27
etl::piecewise_construct_t is an empty class tag type used to disambiguate between different function...
Definition piecewise_construct.hpp:21