di
0.1.0
Loading...
Searching...
No Matches
voidify.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
di::util
{
4
namespace
detail {
5
struct
VoidifyFunction {
6
template
<
typename
T>
7
constexpr
auto
operator()(T* pointer)
const
->
void
* {
8
return
const_cast<
void
*
>
(
static_cast<
void
const
volatile*
>
(pointer));
9
}
10
};
11
}
12
13
constexpr
inline
auto
voidify
= detail::VoidifyFunction {};
14
}
15
16
namespace
di
{
17
using
util::voidify
;
18
}
di::util
Definition
vocab.h:96
di::util::voidify
constexpr auto voidify
Definition
voidify.h:13
di
Definition
any_storable.h:9
di
util
voidify.h
Generated by
1.13.2