di 0.1.0
Loading...
Searching...
No Matches
voidify.h
Go to the documentation of this file.
1#pragma once
2
3namespace di::util {
4namespace 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
13constexpr inline auto voidify = detail::VoidifyFunction {};
14}
15
16namespace di {
17using util::voidify;
18}
Definition vocab.h:96
constexpr auto voidify
Definition voidify.h:13
Definition any_storable.h:9