A header only utility function for getting the size of a container as a signed type.
In a nutshell: It allows to use old-style for loops without triggering sign comparison warnings:
for (int i = 0; i < signed_size(container); ++i) { ... }
for (int64_t i = 0; i < signed_size(big_container); ++i) { ... }
Check out this article for a detailed explanation about the motivation.
mkdir build
cd build
cmake ..
make
make test