tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
decay_copy.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_RANGES_DECAY_COPY_HPP
4#define TETL_RANGES_DECAY_COPY_HPP
5
9
10namespace etl {
11
13template <typename T>
15{
16 return etl::forward<T>(t);
17}
18
19} // namespace etl
20
21#endif // TETL_RANGES_DECAY_COPY_HPP
constexpr auto decay_copy(T &&t) noexcept(is_nothrow_convertible_v< T, decay_t< T > >) -> decay_t< T >
Definition decay_copy.hpp:14
Definition adjacent_find.hpp:8
typename etl::decay< T >::type decay_t
Definition decay.hpp:32
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
constexpr bool is_nothrow_convertible_v
Definition is_nothrow_convertible.hpp:26