di
0.1.0
Loading...
Searching...
No Matches
erasure_cast.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/meta/trivial.h
"
4
#include "
di/util/bit_cast.h
"
5
#include "
di/util/compile_time_fail.h
"
6
7
namespace
di::vocab::detail {
8
template
<concepts::TriviallyRelocatable To, concepts::TriviallyRelocatable From>
9
constexpr
auto
erasure_cast(From
const
& from) -> To {
10
return
util::bit_cast<To>(from);
11
}
12
}
bit_cast.h
compile_time_fail.h
trivial.h
di
vocab
error
erasure_cast.h
Generated by
1.13.2