17#ifndef TOOLBOX_UTIL_ARGV_HPP
18#define TOOLBOX_UTIL_ARGV_HPP
26inline namespace util {
67 ArgvLexer(
int argc,
const char*
const argv[]) noexcept
81 bool empty() const noexcept {
return it_ == end_; }
83 std::string_view
arg() const noexcept {
return *it_; }
84 std::string_view
opt() const noexcept {
return opt_; }
97 std::string_view pop_value();
100 void next() noexcept;
102 ConstIterator it_, end_;
103 std::string_view opt_;
104 std::optional<
std::string_view> val_;