opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
bit_castable.h
Go to the documentation of this file.
1#pragma once
2
3#include <type_traits>
4
5namespace osc
6{
7 // Satisfied if `T` is bit-castable and, therefore, can be used with `std::bit_cast`.
8 //
9 // > "For TriviallyCopyable types, value representation is a part of the object representation"
10 // >
11 // > source: https://en.cppreference.com/w/cpp/language/object#Object_representation_and_value_representation
12 template<typename T>
13 concept BitCastable = std::is_trivially_copyable_v<T> and std::is_trivially_destructible_v<T>;
14}
Definition bit_castable.h:13
Definition custom_decoration_generator.h:5
and
Definition algorithms.h:158