adah1972 / output_container

Automatic output function for STL containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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.

About

Automatic output function for STL containers

License:The Unlicense


Languages

Language:C++ 100.0%