MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / toml_to_vec

Function toml_to_vec

RSPRecomp/src/rsp_recomp.cpp:649–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647
648template <typename T>
649std::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
663template <typename T>
664std::unordered_set<T> toml_to_set(const toml::array* array) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected