- std::cin is type-aware.
- Capable of handling user-defined types providing cleaner, type-safe IO.
- Format specifiers are often more flexible than #include <iomanip>.
- Use std::endl if a flush must occur.
- std::cerr will flush after each write, while std::clog will not. Use std::cerr when handling errors to ensure that all debugging information is successfully flushed prior to a catastrophic issue.
- std::internal.
- By using both std::oct and std::uppercase.
- By leveraging a gsl::span.
- By leveraging the rdbuf() member function.
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand