template <typename CharT>
basic_istream_scanner struct
Implements the scn::
interface, by reading the value with operator>>
.
Example:
#include <scn/istream.h> // required for basic_istream_scanner struct mytype { friend std::istream& operator>>(std::istream&, const mytype&); }; // Use mytype::operator>> for scanning with scnlib template <typename CharT> struct scn::scanner<mytype> : scn::basic_istream_scanner<CharT> {}; auto [result, myvalue] = scn::scan<mytype>(...);