My Project
include
bsl
as_const.hpp
Go to the documentation of this file.
1
28
#ifndef BSL_AS_CONST_HPP
29
#define BSL_AS_CONST_HPP
30
31
#include "
add_const.hpp
"
32
33
namespace
bsl
34
{
44
template
<
typename
T>
45
constexpr add_const_t<T> &
46
as_const
(T &t) noexcept
47
{
48
return
t;
49
}
50
60
template
<
typename
T>
61
constexpr
void
as_const(T
const
&&t) noexcept =
delete
;
62
}
63
64
#endif
bsl::as_const
constexpr add_const_t< T > & as_const(T &t) noexcept
Forms lvalue reference to const type of t.
Definition:
as_const.hpp:46
add_const.hpp
Generated by
1.8.15