Iros
Loading...
Searching...
No Matches
declval.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/meta/core.h
"
4
#include "
di/meta/language.h
"
5
6
namespace
di::util
{
7
template
<
typename
T>
8
auto
declval
() ->
meta::AddRValueReference<T>
{
9
static_assert
(
concepts::AlwaysFalse<T>
,
"declval() is only usable in non-evaluated contexts."
);
10
}
11
}
12
13
namespace
di
{
14
using
util::declval
;
15
}
di::concepts::AlwaysFalse
This concept is used with static_assert() to cause the static assert to fail only when the template h...
Definition
core.h:98
core.h
language.h
di::meta::AddRValueReference
Type< detail::AddRValueReferenceHelper< T > > AddRValueReference
Definition
language.h:411
di::util
Definition
vocab.h:96
di::util::declval
auto declval() -> meta::AddRValueReference< T >
Definition
declval.h:8
di
Definition
zstring_parser.h:9
libs
di
include
di
util
declval.h
Generated by
1.13.0