Skip to content

Commit

Permalink
add type BasicStringPiece::const_pointer, make it like string_view an (
Browse files Browse the repository at this point in the history
…apache#2141)

d more convenient
  • Loading branch information
lrita authored and Yang Liming committed Jun 25, 2023
1 parent 79824df commit 60782e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/butil/strings/string_piece.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ template <typename STRING_TYPE> class BasicStringPiece {
typedef size_t size_type;
typedef typename STRING_TYPE::value_type value_type;
typedef const value_type* pointer;
typedef const value_type* const_pointer;
typedef const value_type& reference;
typedef const value_type& const_reference;
typedef ptrdiff_t difference_type;
Expand Down

0 comments on commit 60782e3

Please sign in to comment.