Skip to content

Commit e88d234

Browse files
mclowzygoloid
authored andcommitted
[string.view.template] Change the reference, pointer etc typedefs in string_view to use value_type rather than charT (#1416)
This is a cut down version of #141, to ensure that it is editorial
1 parent 4a81528 commit e88d234

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/strings.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4709,10 +4709,10 @@
47094709
// types
47104710
using traits_type = traits;
47114711
using value_type = charT;
4712-
using pointer = charT*;
4713-
using const_pointer = const charT*;
4714-
using reference = charT&;
4715-
using const_reference = const charT&;
4712+
using pointer = value_type*;
4713+
using const_pointer = const value_type*;
4714+
using reference = value_type&;
4715+
using const_reference = const value_type&;
47164716
using const_iterator = @\impdefx{type of \tcode{basic_string_view::const_iterator}}@; // see \ref{string.view.iterators}
47174717
using iterator = const_iterator;@\footnote{Because \tcode{basic_string_view} refers to a constant sequence, \tcode{iterator} and \tcode{const_iterator} are the same type.}@
47184718
using const_reverse_iterator = reverse_iterator<const_iterator>;

0 commit comments

Comments
 (0)