Usage
Clone (as a submodule or otherwise):
git submodule add git@github.com:nvsl/cpp-common.git vendor/cpp-common
Add the directory as a include directory:
g++ -iquote"vendor/cpp-common/include" main.cc -o main
Use the files in your project:
#include <iostream>
int main() {
for (
const auto tok :
split(
"Hello! World.",
" ")) {
std::cout << tok << std::endl;
}
}
Prints:
Available files
Supported operations
Docs available at https://nvsl.github.io/cpp-common/docs/html/.