opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
concepts
bit_castable.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <type_traits>
4
5
namespace
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
}
osc::BitCastable
Definition
bit_castable.h:13
osc
Definition
custom_decoration_generator.h:5
osc::and
and
Definition
algorithms.h:158
Generated by
1.9.8