[range.repeat.overview]

# 25 Ranges library [[ranges]](./#ranges)

## 25.6 Range factories [[range.factories]](range.factories#range.repeat.overview)

### 25.6.5 Repeat view [[range.repeat]](range.repeat#overview)

#### 25.6.5.1 Overview [range.repeat.overview]

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/ranges.tex#L3559)

repeat_view generates a sequence of elements
by repeatedly producing the same value[.](#1.sentence-1)

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/ranges.tex#L3563)

The name views​::​repeat denotes
a customization point object ([[customization.point.object]](customization.point.object "16.3.3.3.5 Customization Point Object types"))[.](#2.sentence-1)

Given subexpressions E and F,
the expressions views​::​repeat(E) and views​::​repeat(E, F) are expression-equivalent torepeat_view<decay_t<decltype((E))>>(E) and repeat_view(E, F), respectively[.](#2.sentence-2)

[3](#3)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/ranges.tex#L3572)

[*Example [1](#example-1)*: for (int i : views::repeat(17, 4)) cout << i << ' ';// prints 17 17 17 17 â *end example*]
