Search code examples
How to use std::bit_cast on an array pointer type argument...


c++type-punningbit-cast

Read More
reinterpret bytes of buffer according to system(native) endianess...


c++type-punning

Read More
Any useful difference between std::bit_cast and std::start_lifetime_as?...


c++c++20stdtype-punningbit-cast

Read More
Are there any specific types or values for which type-punning produces identical behavior in all Sta...


clanguage-lawyerunionportabilitytype-punning

Read More
What is the strict aliasing rule?...


c++cundefined-behaviorstrict-aliasingtype-punning

Read More
How do I reinterpret bool as byte/int without branching in C#?...


c#booleanreinterpret-casttype-punningbranchless

Read More
Converting a templated data into another templated data...


c++alignmentreinterpret-casttype-punning

Read More
What's a proper way of type-punning a float to an int and vice-versa?...


c++undefined-behaviorgcc-warningstrict-aliasingtype-punning

Read More
Adversarial test against template generic STL vector pool...


c++vectormemory-managementstrict-aliasingtype-punning

Read More
How can you repurpose an array of floats as an array of doubles without undefined behavior?...


c++undefined-behaviorstrict-aliasingtype-punning

Read More
Can you std::bit_cast to a std::array to obtain the bytes of an object?...


c++c++20type-punningbit-cast

Read More
Can you alias an array of T through a struct of T, similar to how std::complex<T>[N] can alias...


c++language-lawyerstrict-aliasingtype-punning

Read More
Can you reinterpret an array of doubles as a struct containing an array of doubles?...


c++arraysclassmemory-alignmenttype-punning

Read More
cast char * to void **...


cundefined-behaviortype-punning

Read More
downcasting standard layout struct to derived struct with the same data members...


c++language-lawyerundefined-behaviortype-punning

Read More
memmove in-place change of effective type (type-punning)...


c++type-punningmemmove

Read More
Is it allowed to use unions for type punning, and if not, why?...


c++cunionslanguage-designtype-punning

Read More
type-punning with std::aligned_alloc for array of objects...


c++arraysmemory-managementc++17type-punning

Read More
type-punning: omitting placement new and destructors...


c++placement-newtype-punning

Read More
What, if any, additional UB will bit_cast have beyond memcpy?...


c++c++20type-punningbit-cast

Read More
Does nullptr_t break type punning or pointer conversions?...


clanguage-lawyernullptrtype-punningc23

Read More
Is type-punning through a union unspecified in C99, and has it become specified in C11?...


cc99unionsc11type-punning

Read More
Aware of issues during casting a struct of a sized pointer to its const-equivalent...


ctype-conversionundefined-behaviortype-punning

Read More
Inconsistent results when type punning uint64_t with union and bit-field...


c++c++11structunionstype-punning

Read More
How does C++ strict aliasing work with arrays and dynamically allocated memory?...


c++memorystrict-aliasingtype-punning

Read More
how do I use type punning, without having to use memcpy...


c++type-punning

Read More
Aliasing through unions...


cunionsstrict-aliasingtype-punning

Read More
Type punning in C using union...


clanguage-lawyerunionstype-punning

Read More
Type punning pointers via union...


cunionstype-punning

Read More
In C++ can I treat an array of single-member unions as an array of the element?...


c++c++17language-lawyerunionstype-punning

Read More
BackNext