The graveyard library ported to C++