.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _itertools__chunk_range: itertools::chunk_range ====================== *#include * **Synopsis** .. rst-class:: cppsynopsis | std::pair :red:`chunk_range` (std::ptrdiff_t :param:`first`, | std::ptrdiff_t :param:`last`, | long :param:`n_chunks`, | long :param:`rank`) Parameters ^^^^^^^^^^ * :param:`first` First value of the range. * :param:`last` Last value of the range (excluded). * :param:`n_chunks` Number of chunks to divide the range into. * :param:`rank` Rank of the calling process. Returns ^^^^^^^ Pair of indices specifying the first and last (excluded) value of the chunk assigned to the calling process.