MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::io::detail::token_cursor Class Reference

Splits a line into whitespace-separated tokens, one at a time. More...

#include <text_parse.hpp>

Public Member Functions

 token_cursor (std::string_view line) noexcept
bool next (std::string_view &tok) noexcept
 The next token, or false at the end of the line.
bool done () const noexcept
 True if no token is left.

Detailed Description

Splits a line into whitespace-separated tokens, one at a time.

Constructor & Destructor Documentation

◆ token_cursor()

mtl::io::detail::token_cursor::token_cursor ( std::string_view line)
inlineexplicitnoexcept

Member Function Documentation

◆ done()

bool mtl::io::detail::token_cursor::done ( ) const
inlinenoexcept

True if no token is left.

◆ next()

bool mtl::io::detail::token_cursor::next ( std::string_view & tok)
inlinenoexcept

The next token, or false at the end of the line.


The documentation for this class was generated from the following file: