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 "nvsl/string.hh"
#include <iostream>
int main() {
for (const auto tok : split("Hello! World.", " ")) {
std::cout << tok << std::endl;
}
}
Prints:
Hello!
World
- [string.hh](@ref string.hh)
- [envvars.hh](@ref envvars.hh)
- [error.hh](@ref error.hh)
- [stats.hh](@ref stats.hh)
Docs available at https://nvsl.github.io/cpp-common/docs/html/.