Repository Details
Shared by
HelloGitHub Rating
0 ratings
一个让输出变得更漂亮的 C++ 库
Past 7 days Received -1 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周二 | 934 | — |
| 周三 | 934 | 0 |
| 周四 | 933 | -1 |
| 周五 | 933 | 0 |
| 周六 | 933 | 0 |
| 周日 | 933 | 0 |
| 周一 | 933 | 0 |
933
Stars
Yes
Chinese
C++
Language
No
Active
7
Contributors
1
Issues
No
Organization
None
Latest
79
Forks
MIT
License
一个让输出变得更漂亮的 C++ 库。就像 python 语言的 pprint 库,它对基本类型、字符串、复数、enum 类型、STL 容器等做了输出格式优化,有了缩进和分行才更容易发现这个世界的美好。示例代码如下:
```c++
#include <pprint.hpp>
printer.print(std::map<std::string, std::set<int>>{{"foo", {1, 2, 3, 3, 2, 1}}, {"bar", {7, 6, 5, 4}}});
// 输出结果如下
{
"bar" : {4, 5, 6, 7},
"foo" : {1, 2, 3}
}
```
Included in:
Vol.39
Comments
Rating:
No comments yet