Skip to content

Commit 4f32f71

Browse files
[string.view.template.general] Use const charT* for data
and a data member, for the consistency with `basic_string`.
1 parent eb94afb commit 4f32f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/strings.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@
665665
constexpr const_reference at(size_type pos) const; // freestanding-deleted
666666
constexpr const_reference front() const;
667667
constexpr const_reference back() const;
668-
constexpr const_pointer data() const noexcept;
668+
constexpr const charT* data() const noexcept;
669669

670670
// \ref{string.view.modifiers}, modifiers
671671
constexpr void remove_prefix(size_type n);
@@ -734,7 +734,7 @@
734734
constexpr size_type find_last_not_of(const charT* s, size_type pos = npos) const;
735735

736736
private:
737-
const_pointer @\exposid{data_}@; // \expos
737+
const charT* @\exposid{data_}@; // \expos
738738
size_type @\exposid{size_}@; // \expos
739739
};
740740

0 commit comments

Comments
 (0)