List Question
20 TechQA 2024-03-31T20:10:48.790000Can std::bit_cast be applied to an empty object?
129 views
Asked by Fedor
std::bit_cast padding and undefined behavior
260 views
Asked by Oersted
Can i use placement new as a bit_cast?
244 views
Asked by yatanai
Trying to use std::bit_cast with a bitfield struct. Why is it not constexpr?
338 views
Asked by sh-
Design choices for writing efficient numerical solvers in c++: Type punning
110 views
Asked by ander
Bitwise comparing NaN's in C++
105 views
Asked by Estin
std::bit_cast to pointer type not useable in constexpr context
328 views
Asked by wimalopaan
Syntax for std::bit_cast to an array
371 views
Asked by Home of the Brave
How to let gcc optimize std::bit_cast with std::move?
160 views
Asked by Home of the Brave
Does reinterpret_cast together with binary input/output always leads to undefined behavior?
76 views
Asked by Myrddin Krustowski
std::bit_cast vs reinterpret_cast in file I/O
1k views
Asked by digito_evo
Can bit_cast do the same thing as memcpy to store a pointer into an array of shorts without undefined behaviour?
936 views
Asked by Glenn Teitelbaum
How can I convert ANY user defined type to an std::bitset?
443 views
Asked by dave_thenerd
Is it valid to create closure (lambda) objects using `std::bit_cast` in C++20?
602 views
Asked by Fedor
Safe equivalent of std::bit_cast in C++11
3k views
Asked by Craig Gidney
Why can't I std::bit_cast the contents of a string literal?
470 views
Asked by Jan Schultke
What, if any, additional UB will bit_cast have beyond memcpy?
466 views
Asked by markt1964
Can you std::bit_cast to a std::array to obtain the bytes of an object?
4.3k views
Asked by Evg
Any useful difference between std::bit_cast and std::start_lifetime_as?
4.1k views
Asked by markt1964
Why was std::bit_cast added, if reinterpret_cast could do the same?
21.9k views
Asked by bogdan tudose