サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
パリ五輪
brevzin.github.io
In Rust, if I want to print some 32-bit unsigned value in hex, with the leading 0x, padded out with zeros, I would write that as: println!("{:#010x}", value); In C++23, if I want to do the same, that’s: std::println("{:#010x}", value); The only difference is the spelling of the name of the thing we’re calling (which is a function template in C++ and a macro in Rust) - otherwise, identical. Neverth
The spaceship rewrites on the right-most column are typically written using the same initial operator - a < b as 0 < (b <=> a) - I just flipped them to better illustrate the sign flip on the comparison. Defaulting comparisonsOne of the annoying difficulties in C++17 was actually writing out member-wise lexicographical comparisons. It’s tedious and error-prone. Let’s write out the full complement o
このページを最初にブックマークしてみませんか?
『Barry’s C++ Blog』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く