scnlib

Modern C++ library providing scanf-like input parsing with type safety

brewmacoslinux
Try with needOr install directly
Source

About

Scanf for modern C++

Commands

scnlib

Examples

Parse integers from input string$ scn::scan<int>("42") to extract integer values
Read formatted input with multiple types$ scn::scan<int, std::string>(input, "{} {}") to parse int and string
Parse floating-point numbers$ scn::scan<double>("3.14") to extract decimal values