File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ namespace std::ranges {
143143[<i >Drafting note:</i >
144144We can't use <code >if constexpr (ranges::size(<i >i_</i >.<i >parent_</i >-> <i >pattern_</i >) == 0)</code >
145145here because it is not a constant expression, and it seems more intuitive to just use
146- <code >ranges::empty</code > which is always well-formed. Note that the PR does not seek the
147- aggressive optimization that minimizes the instantiation as this is not the intent of the
148- current design (for example, <code ><i >outer-iterator</i >& operator++()</code > can be
149- specialized for the case where <code >Pattern::size() == 0</code >), library implementations
150- are free to optimize as it pleases.]
146+ <code >ranges::empty</code > combined with runtime < code >if</ code > which is always well-formed.
147+ Note that the PR does not seek the aggressive optimization that minimizes the instantiation as this is
148+ not the intent of the current design (for example, <code ><i >outer-iterator</i >& operator++()</code >
149+ can be specialized for the case where <code >Pattern::size() == 0</code > to save some O(1) comparisons),
150+ library implementations are free to optimize as it pleases.]
151151</p >
152152</blockquote >
153153
You can’t perform that action at this time.
0 commit comments