fill and fill_n fill assigns a value to each element in a range fill_n assigns a value to n elements starting at an iterator