Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Union-Struct-uint32_t byte order
//clang 6.0.0 #include <iostream> union muldiv_t { struct { uint16_t num; uint16_t inv; }; uint32_t u32All; }; int main() { muldiv_t md; md.num = 0xAAAA; md.inv = 0xBBBB; std::cout << std::hex << md.u32All << std::endl; }
run
|
edit
|
history
|
help
0
Throttle Example using a circular queue (Push all but 2 less than maxSize; then pop all but 2 of current size)
C++ out of ref
STL stack
Crow unordered_map Quiz
MiniumNumberDivideConquer
EBO
Recursive Call Example Sum
wasm test for node
Apple is not convertible to itself (clang 3.8.0)
std::function copies