cpp-terminal
1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
iostream.cpp
Go to the documentation of this file.
1
/*
2
* cpp-terminal
3
* C++ library for writing multi-platform terminal applications.
4
*
5
* SPDX-FileCopyrightText: 2019-2024 cpp-terminal
6
*
7
* SPDX-License-Identifier: MIT
8
*/
9
10
#include "
cpp-terminal/iostream.hpp
"
11
12
#include <array>
13
14
namespace
15
{
16
std::array<char,
sizeof
(
Term::TOstream
)> cout_buffer;
//NOLINT(fuchsia-statically-constructed-objects)
17
std::array<char,
sizeof
(
Term::TOstream
)> clog_buffer;
//NOLINT(fuchsia-statically-constructed-objects)
18
std::array<char,
sizeof
(
Term::TOstream
)> cerr_buffer;
//NOLINT(fuchsia-statically-constructed-objects)
19
std::array<char,
sizeof
(
Term::TIstream
)> cin_buffer;
//NOLINT(fuchsia-statically-constructed-objects)
20
}
// namespace
21
22
Term::TOstream
&
Term::cout
=
reinterpret_cast<
Term::TOstream
&
>
(cout_buffer);
//NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
23
Term::TOstream
&
Term::clog
=
reinterpret_cast<
Term::TOstream
&
>
(clog_buffer);
//NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
24
Term::TOstream
&
Term::cerr
=
reinterpret_cast<
Term::TOstream
&
>
(cerr_buffer);
//NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
25
Term::TIstream
&
Term::cin
=
reinterpret_cast<
Term::TIstream
&
>
(cin_buffer);
//NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
Term::TIstream
Definition
stream.hpp:21
Term::TOstream
Definition
stream.hpp:42
iostream.hpp
Term::clog
TOstream & clog
Definition
iostream.cpp:23
Term::cout
TOstream & cout
Definition
iostream.cpp:22
Term::cerr
TOstream & cerr
Definition
iostream.cpp:24
Term::cin
TIstream & cin
Definition
iostream.cpp:25
cpp-terminal
iostream.cpp
Generated by
1.11.0