26
Ranges library
[ranges]
26.6
Range factories
[range.factories]
26.6.5
Repeat view
[range.repeat]
26.6.5.1
Overview
[range.repeat.overview]
1
#
repeat_
view
generates a sequence of elements by repeatedly producing the same value
.
2
#
The name
views
::
repeat
denotes a customization point object (
[customization.
point.
object]
)
.
Given subexpressions
E
and
F
, the expressions
views
::
repeat
(
E
)
and
views
::
repeat
(
E, F
)
are expression-equivalent to
repeat_
view
(
E
)
and
repeat_
view
(
E, F
)
, respectively
.
3
#
[
Example
1
:
for
(
int
i
:
views
::
repeat
(
17
,
4
)
)
cout
<
<
i
<
<
' '
;
// prints
17 17 17 17
—
end example
]