Gets all argument names as an ordered vector
| 724 | |
| 725 | /// Gets all argument names as an ordered vector |
| 726 | std::vector<std::string> ProblemSpace::argument_names() const { |
| 727 | |
| 728 | Problem problem = this->begin().at(); |
| 729 | |
| 730 | std::vector<std::string> names; |
| 731 | names.reserve(problem.size()); |
| 732 | |
| 733 | for (auto const & arg : problem) { |
| 734 | names.push_back(arg->argument->description->aliases.front()); |
| 735 | } |
| 736 | |
| 737 | return names; |
| 738 | } |
| 739 | |
| 740 | ///////////////////////////////////////////////////////////////////////////////////////////////// |
| 741 |