16 Options(
int argc,
const char *
const argv[]) {
20 [[nodiscard]] std::span<const std::string_view>
options()
const {
23 [[nodiscard]] std::span<bool>
used() {
std::span< const std::string_view > options() const
std::vector< std::string_view > options_storage
Options(int argc, const char *const argv[])
std::unique_ptr< bool[]> used_storage
void set_params(T &t, std::string_view prefix, std::span< const std::string_view > options, std::optional< std::span< bool > > used=std::nullopt)
Overwrites t based on the options that start with prefix.
decltype(auto) set_params(T &t, std::string_view prefix, Options &opts)