basicostream
basic_ostream is a class template in the C++ standard library that provides the interface for output streams. It forms the basis for character-output streams, coordinating writing to an underlying stream buffer and offering formatting controls and insertion operations used by higher-level stream classes.
Template parameters are charT, the character type (for example char or wchar_t), and Traits, the character traits
It supplies member functions for direct writing, such as put and write, and for controlling output positioning
std::ostream is a common instantiation of basic_ostream<char>, while std::wostream uses wchar_t. The template also underpins other
Concrete stream types such as std::cout, std::cin, std::ofstream, and std::ostringstream derive from basic_ostream, providing writable output