This url shows how to do it in basic, but the method can be easily copied in c++

Millions of items