下拉刷新
Repository Details
Shared bynavbar_avatar
repo_avatar
HelloGitHub Rating
0 ratings
一个让输出变得更漂亮的 C++ 库
FreeMIT
Claim
Collect
Share
923
Stars
Yes
Chinese
C++
Language
No
Active
7
Contributors
1
Issues
No
Organization
0.9.1
Latest
80
Forks
MIT
License
More
一个让输出变得更漂亮的 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