CppCommon 1.0.5.0
C++ Common Library
Loading...
Searching...
No Matches
console.inl
Go to the documentation of this file.
1
9namespace CppCommon {
10
11template <class TOutputStream>
12inline TOutputStream& operator<<(TOutputStream& stream, Color color)
13{
14 Console::SetColor(color);
15 return stream;
16}
17
18template <class TOutputStream>
19inline TOutputStream& operator<<(TOutputStream& stream, std::pair<Color, Color> colors)
20{
21 Console::SetColor(colors.first, colors.second);
22 return stream;
23}
24
25} // namespace CppCommon
static void SetColor(Color color, Color background=Color::BLACK)
Set console text color.
Definition console.cpp:19
C++ Common project definitions.
std::ostream & operator<<(std::ostream &os, const uint128_t &value)
Definition uint128.inl:155
Color
Supported console colors.
Definition console.h:18