CppCommon
1.0.5.0
C++ Common Library
Loading...
Searching...
No Matches
include
system
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
CppCommon::Console::SetColor
static void SetColor(Color color, Color background=Color::BLACK)
Set console text color.
Definition
console.cpp:19
CppCommon
C++ Common project definitions.
Definition
token_bucket.h:15
CppCommon::operator<<
std::ostream & operator<<(std::ostream &os, const uint128_t &value)
Definition
uint128.inl:155
CppCommon::Color
Color
Supported console colors.
Definition
console.h:18
Generated by
1.9.8