CppBenchmark 1.0.5.0
C++ Benchmark Library
Loading...
Searching...
No Matches
console.inl
Go to the documentation of this file.
1
9namespace CppBenchmark {
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 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