ptc-print

A single-header cross-platform library for custom printing to the output stream. (by JustWhit3)

Ptc-print Alternatives

Similar projects and alternatives to ptc-print

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better ptc-print alternative or higher similarity.

ptc-print reviews and mentions

Posts with mentions or reviews of ptc-print. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-08.
  • ptc-print: a C++17 header-only library for custom printing to the output stream (basically a detailed implementation of the Python print() function with improvements)
    2 projects | /r/compsci | 8 Sep 2022
    Hello everybody, I want to present you `ptc-print`, a modern C++ library for custom printing to the output stream. It is basically a detailed implementation of the Python `print()` function, with several additions. It is **NOT** a formatting library as `fmt`, but a pretty printer tool which provides you a most comfortable way to print generic stuff to the output stream. In particular, some of its features are: - It is constructed through the `Print` functor, which is a fully type- and thread-safe class with automatic memory management, implemented through an *header-only* library, with no external dependencies. - It supports also the usage of *ANSI escape sequences*. - It supports the printing of all the standard types and also stdlib ones (`std::vector`, `std::map` etc...). - It is possible to choose to print using different char types (`char`, `wchar_t`...). - Several [advantages](https://github.com/JustWhit3/ptc-print#advantages) with respect to similar libraries (friendly syntax, better performances, etc...). There is a whole README section dedicated to this. It has also many more features like the possibility to choose end and separator characters (like in Python) or to set a pattern among each printed argument. In the main README you can find all the information you want, a list of todo stuff and some preliminary [benchmarking](https://github.com/JustWhit3/ptc-print#comparison-with-other-libraries) studies I performed with respect to other similar libraries. With [performance improvements](https://github.com/JustWhit3/ptc-print#performance-improvements) options enabled it is even consistently faster than `fmt::print` or `printf`. If you like the repo don't forget to leave a star on GitHub! Thanks. Repository link: https://github.com/JustWhit3/ptc-print
    2 projects | /r/compsci | 8 Sep 2022
  • C++ Show and Tell - August 2022
    25 projects | /r/cpp | 1 Aug 2022
    Repository: https://github.com/JustWhit3/ptc-print
  • A note from our sponsor - WorkOS
    workos.com | 15 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic ptc-print repo stats
11
42
4.9
6 months ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com