2 ms·
This can't work for "split pea" and "pea soup" in C, due to the zero terminator at the end of "split pea". edit: However this could work with C++ sring_views.
by leni536 4y ago
This can't work for "split pea" and "pea soup" in C, due to the zero terminator at the end of "split pea".
edit:
However this could work with C++ sring_views. I can imagine a library implementing this like:
constexpr auto store = superstring<
"split pea",
"pea soup",
"split pea soup"
>;
where `get<i>(store)` gets you a corresponding string_view.
edit2: doh, I just skimmed your github link. I presume you implement just this.