`getSizeMPI()` and `getRankMPI()` should not be in this class because they are information about MPI processes and nothing to do with vector. To access these information, I suggest to use Boost.MPI (http://www.boost.org/doc/libs/1_55_0/doc/html/mpi/tutorial.html) or create something like that.