1
Fork 0
mirror of https://github.com/Jaxan/hybrid-ads.git synced 2025-04-27 23:17:44 +02:00
hybrid-ads/lib/trie.cpp
2015-04-14 11:55:20 +02:00

9 lines
188 B
C++

#include "trie.hpp"
std::vector<std::vector<size_t>> flatten(const trie& t) {
std::vector<std::vector<size_t>> ret;
t.for_each([&ret](auto&& w) { ret.push_back(w); });
return ret;
}