std: Move ptr to prim
std: Move swap and replace to prim