Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adah1972/output_container
Automatic output function for STL containers
https://github.com/adah1972/output_container
container cpp cpp17 ostream output stl
Last synced: about 1 month ago
JSON representation
Automatic output function for STL containers
- Host: GitHub
- URL: https://github.com/adah1972/output_container
- Owner: adah1972
- License: unlicense
- Created: 2019-09-27T12:56:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-02T15:07:21.000Z (over 3 years ago)
- Last Synced: 2024-08-01T03:31:56.608Z (5 months ago)
- Topics: container, cpp, cpp17, ostream, output, stl
- Language: C++
- Homepage:
- Size: 10.7 KB
- Stars: 52
- Watchers: 3
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- stars - adah1972/output_container
README
This is a simple C++ header file to allow outputting of C++ containers.
It is generic and can work with any container that has `begin` and `end`
member functions. It avoids conflicts with existing output functions
(like that for `std::string`) by detecting whether they can be used.You may want to check out [output_range][1] as well, which is a natural
extension of *output\_container*, supporting not only containers, but
also *ranges* like a C array or other C++20 ranges.Using this file requires a C++17-compliant compiler.
[1]: https://github.com/adah1972/output_range