Iros
Loading...
Searching...
No Matches
as_const.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/meta/util.h
"
4
5
#ifndef DI_NO_USE_STD
6
#include <utility>
7
#else
8
namespace
std
{
9
template
<
typename
T>
10
constexpr
auto
as_const
(T& value)
noexcept
->
di::meta::AddConst<T>
& {
11
return
value
;
12
}
13
14
template
<
typename
T>
15
constexpr
auto
as_const
(T
const
&&) ->
di::meta::AddConst<T>
& =
delete
;
16
}
17
#endif
18
19
namespace
di::util
{
20
using
std::as_const;
21
}
22
23
namespace
di
{
24
using
util::as_const;
25
}
di::container::view::as_const
constexpr auto as_const
Definition
as_const.h:32
di::function::value
constexpr auto value
Definition
value.h:34
di::meta::AddConst
T const AddConst
Definition
language.h:381
di::util
Definition
vocab.h:96
di
Definition
zstring_parser.h:9
std
Definition
enable_generate_structed_bindings.h:46
util.h
libs
di
include
di
util
as_const.h
Generated by
1.13.0