CppCommon  1.0.4.1
C++ Common Library
console.inl
Go to the documentation of this file.
1 
9 namespace CppCommon {
10 
11 template <class TOutputStream>
12 inline TOutputStream& operator<<(TOutputStream& stream, Color color)
13 {
14  Console::SetColor(color);
15  return stream;
16 }
17 
18 template <class TOutputStream>
19 inline 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.
Definition: token_bucket.h:15
std::ostream & operator<<(std::ostream &os, const uint128_t &value)
Definition: uint128.inl:155
Color
Supported console colors.
Definition: console.h:18