Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
void sort(std::vector<std::string>&& ss)
std::sort(ss.begin(), ss.end());
for (auto& s : ss) std::cout << s << "\n";
std::vector<std::string> read_all_lines(std::istream& istr)
std::vector<std::string> temp;
std::string buffer;
while (std::getline(istr, buffer, '\n'))
return std::move(temp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.