| 647 | |
| 648 | template <typename T> |
| 649 | std::vector<T> toml_to_vec(const toml::array* array) { |
| 650 | std::vector<T> ret; |
| 651 | |
| 652 | // Reserve room for all the funcs in the map. |
| 653 | ret.reserve(array->size()); |
| 654 | array->for_each([&ret](auto&& el) { |
| 655 | if constexpr (toml::is_integer<decltype(el)>) { |
| 656 | ret.push_back(*el); |
| 657 | } |
| 658 | }); |
| 659 | |
| 660 | return ret; |
| 661 | } |
| 662 | |
| 663 | template <typename T> |
| 664 | std::unordered_set<T> toml_to_set(const toml::array* array) { |
nothing calls this directly
no outgoing calls
no test coverage detected