cplusplus / draft

C++ standards drafts
http://www.open-std.org/jtc1/sc22/wg21/
5.66k stars 748 forks source link

[std.manip, ext.manip] Better titles for "Standard"/"Extended" manipulators #7198

Open frederick-vs-ja opened 1 month ago

frederick-vs-ja commented 1 month ago

It seems a bit misleading that the standard distinguishes some manipulators with words "standard" and "extended", as all of these manipulators are standard library components.

frederick-vs-ja commented 1 month ago

CC @msebor (apologizing if you're not the author of N2071 and N2072)

jwakely commented 1 month ago

Maybe "basic" and "extended"?

Although "extended" isn't very descriptive, extended how? What distinguishes them is that they take extra arguments by reference and read/write to those objects. The basic manipulators only take scalar args by value, and so only modify the state of the stream, not any by-reference args.