Slice for C++ Implementation and declaration