[std::cmp] add missing docs and provide an example