Snippet c++ class