tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
forward_as_tuple.hpp
Go to the documentation of this file.
1
2
3// SPDX-License-Identifier: BSL-1.0
4
5#ifndef TETL_TUPLE_FORWARD_AS_TUPLE_HPP
6#define TETL_TUPLE_FORWARD_AS_TUPLE_HPP
7
10
11namespace etl {
12
17template <typename... Args>
18[[nodiscard]] constexpr auto forward_as_tuple(Args&&... args) noexcept -> etl::tuple<Args&&...>
19{
20 return etl::tuple<Args&&...>{etl::forward<Args>(args)...};
21}
22
23} // namespace etl
24
25#endif // TETL_TUPLE_FORWARD_AS_TUPLE_HPP
Definition adjacent_find.hpp:8
constexpr auto forward_as_tuple(Args &&... args) noexcept -> etl::tuple< Args &&... >
Constructs a tuple of references to the arguments in args suitable for forwarding as an argument to a...
Definition forward_as_tuple.hpp:18
constexpr auto forward(remove_reference_t< T > &param) noexcept -> T &&
Forwards lvalues as either lvalues or as rvalues, depending on T. When t is a forwarding reference (a...
Definition forward.hpp:18
Definition tuple.hpp:107