- 538 名前:デフォルトの名無しさん mailto:sage [2022/04/30(土) 11:50:48.98 ID:xinPqoeI.net]
- >>514
left/right は os.flags() の戻り値を std::ios_base::{left, right} でマスクして確認 https://en.cppreference.com/w/cpp/io/ios_base/flags 書式設定全体の保存・復元は一時的な ostream を作って copyfmt でやるのがいいらしいよ https://stackoverflow.com/questions/2273330/restore-the-state-of-stdcout-after-manipulating-it
|

|