bit_cast.cpp (154B)
1 #include <bit> 2 #include <iostream> 3 4 using namespace std; 5 6 int main() 7 { 8 std::cout << (endian::native == endian::big ? "big\n" : "little\n"); 9 return 0; 10 }
examplesToy examples in single C files. | |
git clone git://henryandlizzy.uk/examples | |
Log | Files | Refs |