std::ranges 를 이용한 split 구현
std::vector split(std::string_view str, std::string_view delim) { auto view{ str | std::ranges::views::split(delim) | std::ranges::views::transform([](auto&& elem) { return std::string_view(&*elem.begin(), std::ranges::distance(elem)); }) }; std::vector strings{ view.begin(), view.end() }; return strings; } int main() { for (auto& elem : split("HI, MY, NAME, IS, UM", ", ")) { std::cout