We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c651133 commit cdf6cf9Copy full SHA for cdf6cf9
include/argparse.h
@@ -810,10 +810,7 @@ namespace argparse
810
auto consume_args(std::ranges::view auto args) const -> std::vector<std::any>
811
{
812
std::vector<std::any> values;
813
- for (auto & arg : args)
814
- {
815
- values.push_back(consume_arg(arg));
816
- }
+ std::ranges::copy(std::views::transform(args, [this](auto & arg) { return consume_arg(arg); }), std::back_inserter(values));
817
return values;
818
}
819
0 commit comments