Iros
Loading...
Searching...
No Matches
forward_like.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/meta/core.h
"
4
#include "
di/meta/util.h
"
5
6
namespace
di::util
{
7
template
<
typename
T,
typename
U>
8
[[nodiscard]]
constexpr
auto
forward_like
(U&& value) ->
decltype
(
auto
) {
9
return
static_cast<
meta::Like<T, meta::RemoveReference<U>
>
&&>(value);
10
}
11
}
12
13
namespace
di
{
14
using
util::forward_like
;
15
}
core.h
di::meta::Like
Type< detail::LikeHelper< T, U > > Like
Definition
language.h:468
di::util
Definition
vocab.h:96
di::util::forward_like
constexpr auto forward_like(U &&value) -> decltype(auto)
Definition
forward_like.h:8
di
Definition
zstring_parser.h:9
util.h
libs
di
include
di
util
forward_like.h
Generated by
1.13.0