MapReduce-MPI WWW Site - MapReduce-MPI Documentation

### Destroy a MapReduce object

    MapReduce::~MapReduce()

This destroys a previously created MapReduce object, freeing all the memory it allocated internally to store keys and values.

If you created the MapReduce object in this manner:

    MapReduce *mr = new MapReduce(MPI_COMM_WORLD);

then you should destroy it with

    delete mr

If you created the MapReduce object in this manner:

    MapReduce mr(MPI_COMM_WORLD);

then it will be destroyed automatically when the "mr" variable goes out of scope.

Related methods: create