/** @brief Assigns new contents to the partition_vector, replacing its
  *          current contents and modifying its size accordingly.
  *
  * @param n     new size of partition_vector
  * @param val   Value to fill the container with
  */
 void assign(size_type n, T const& val)
 {
     partition_vector_.assign(n, val);
 }