StandardOutputWriter.cpp 572 B

123456789101112131415161718192021
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-06
  6. * Changed: 2023-02-22
  7. *
  8. * */
  9. #include <iostream>
  10. #include <ls-std/io/StandardOutputWriter.hpp>
  11. ls::std::io::StandardOutputWriter::StandardOutputWriter() = default;
  12. ls::std::io::StandardOutputWriter::~StandardOutputWriter() noexcept = default;
  13. bool ls::std::io::StandardOutputWriter::write(const ls::std::core::type::byte_field &_data)
  14. {
  15. ::std::cout << _data;
  16. return !::std::cout.fail();
  17. }