Skip to content

Commit d9bff4a

Browse files
authored
[coro.generator] Rename the generator's template parameter "V" to "Val" (cplusplus#7129)
1 parent f8468b9 commit d9bff4a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/ranges.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16774,12 +16774,12 @@
1677416774
\begin{codeblock}
1677516775
namespace std {
1677616776
// \ref{coro.generator.class}, class template \tcode{generator}
16777-
template<class Ref, class V = void, class Allocator = void>
16777+
template<class Ref, class Val = void, class Allocator = void>
1677816778
class generator;
1677916779

1678016780
namespace pmr {
16781-
template<class R, class V = void>
16782-
using generator = std::generator<R, V, polymorphic_allocator<>>;
16781+
template<class Ref, class Val = void>
16782+
using generator = std::generator<Ref, Val, polymorphic_allocator<>>;
1678316783
}
1678416784
}
1678516785
\end{codeblock}
@@ -16788,11 +16788,11 @@
1678816788

1678916789
\begin{codeblock}
1679016790
namespace std {
16791-
template<class Ref, class V = void, class Allocator = void>
16792-
class @\libglobal{generator}@ : public ranges::view_interface<generator<Ref, V, Allocator>> {
16791+
template<class Ref, class Val = void, class Allocator = void>
16792+
class @\libglobal{generator}@ : public ranges::view_interface<generator<Ref, Val, Allocator>> {
1679316793
private:
16794-
using @\exposid{value}@ = conditional_t<is_void_v<V>, remove_cvref_t<Ref>, V>; // \expos
16795-
using @\exposid{reference}@ = conditional_t<is_void_v<V>, Ref&&, Ref>; // \expos
16794+
using @\exposid{value}@ = conditional_t<is_void_v<Val>, remove_cvref_t<Ref>, Val>; // \expos
16795+
using @\exposid{reference}@ = conditional_t<is_void_v<Val>, Ref&&, Ref>; // \expos
1679616796

1679716797
// \ref{coro.generator.iterator}, class \tcode{generator::\exposid{iterator}}
1679816798
class @\exposidnc{iterator}@; // \expos
@@ -16978,8 +16978,8 @@
1697816978

1697916979
\begin{codeblock}
1698016980
namespace std {
16981-
template<class Ref, class V, class Allocator>
16982-
class generator<Ref, V, Allocator>::promise_type {
16981+
template<class Ref, class Val, class Allocator>
16982+
class generator<Ref, Val, Allocator>::promise_type {
1698316983
public:
1698416984
generator get_return_object() noexcept;
1698516985

@@ -17281,8 +17281,8 @@
1728117281

1728217282
\begin{codeblock}
1728317283
namespace std {
17284-
template<class Ref, class V, class Allocator>
17285-
class generator<Ref, V, Allocator>::@\exposid{iterator}@ {
17284+
template<class Ref, class Val, class Allocator>
17285+
class generator<Ref, Val, Allocator>::@\exposid{iterator}@ {
1728617286
public:
1728717287
using value_type = @\exposid{value}@;
1728817288
using difference_type = ptrdiff_t;

0 commit comments

Comments
 (0)