Skip to content

Instantly share code, notes, and snippets.

View j4st1's full-sized avatar
💭
Just an Aiden Walker. . .

Aiden Walker j4st1

💭
Just an Aiden Walker. . .
View GitHub Profile
@matt-42
matt-42 / split.cpp
Created July 9, 2020 23:02
C++ split implementation
#include <string_view>
#include <iostream>
#include <cstring>
#include <vector>
std::vector<std::string> split(const std::string& str, char split_char) {
const char* cur = str.c_str();