Iros
 
Loading...
Searching...
No Matches
bit_cast.h
Go to the documentation of this file.
1#pragma once
2
3#ifndef DI_NO_USE_STD
4#include <bit>
5#else
6namespace std {
7template<typename To, typename From>
8constexpr auto bit_cast(From const& value) noexcept -> To {
9 return __builtin_bit_cast(To, value);
10}
11}
12#endif
13
14namespace di::util {
15using std::bit_cast;
16}
17
18namespace di {
19using util::bit_cast;
20}
Definition vocab.h:96
Definition zstring_parser.h:9
Definition enable_generate_structed_bindings.h:46