Clone (as a submodule or otherwise):
git submodule add git@github.com:nvsl/cpp-common.git vendor/cpp-commonAdd the directory as a include directory:
g++ -iquote"vendor/cpp-common/include" main.cc -o mainUse 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/.