CppBenchmark  1.0.4.0
C++ Benchmark Library
console.inl
Go to the documentation of this file.
1 
9 namespace CppBenchmark {
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 CppBenchmark
static void SetColor(Color color, Color background=Color::BLACK)
Set console text color.
Definition: console.cpp:19
C++ Benchmark project definitions.
Definition: barrier.h:15
TOutputStream & operator<<(TOutputStream &stream, Color color)
Stream manipulator: change console text color.
Definition: console.inl:12
Color
Supported console colors.
Definition: console.h:18