Skip to content

Instantly share code, notes, and snippets.

View blaz-kranjc's full-sized avatar
👋
Bonjour!

Blaž Kranjc blaz-kranjc

👋
Bonjour!
  • Nets Switzerland
  • Geneva, Switzerland
  • 08:37 (UTC +02:00)
  • LinkedIn in/bkranjc
View GitHub Profile
@Starl1ght
Starl1ght / main.cpp
Created March 26, 2017 21:32
Console
#include <vector>
#include <sstream>
#include <iostream>
#include <iterator>
#include <tuple>
template <typename T>
std::vector<std::string> Split(T&& input) {
std::stringstream ss{ std::forward<T>(input) };
return std::vector<std::string> {std::istream_iterator<std::string>(ss), std::istream_iterator<std::string>{} };