class CharIterator
Defined at line 614 of file ../../third_party/abseil-cpp/absl/strings/cord.h
----------------------------------------------------------------------------
Cord::CharIterator
----------------------------------------------------------------------------
A `Cord::CharIterator` allows iteration over the constituent characters of
a `Cord`.
Generally, you do not instantiate a `Cord::CharIterator` directly; instead,
you create one implicitly through use of the `Cord::Chars()` member
function.
A `Cord::CharIterator` has the following properties:
* The iterator is invalidated after any non-const operation on the
Cord object over which it iterates.
* Two `CharIterator` objects can be compared equal if and only if they
remain valid and iterate over the same Cord.
* The iterator keeps state that can grow for Cords that contain many
nodes and are imbalanced due to sharing. Prefer to pass this type by
const reference instead of by value.
* This type cannot act as a forward iterator because a `Cord` can reuse
sections of memory. This fact violates the requirement for forward
iterators to compare equal if dereferencing them returns the same
object.
Public Methods
void CharIterator ()
Defined at line 622 of file ../../third_party/abseil-cpp/absl/strings/cord.h
CharIterator & operator++ ()
Defined at line 1575 of file ../../third_party/abseil-cpp/absl/strings/cord.h
CharIterator operator++ (int )
Defined at line 1584 of file ../../third_party/abseil-cpp/absl/strings/cord.h
bool operator== (const CharIterator & other)
Defined at line 1590 of file ../../third_party/abseil-cpp/absl/strings/cord.h
bool operator!= (const CharIterator & other)
Defined at line 1594 of file ../../third_party/abseil-cpp/absl/strings/cord.h
reference operator* ()
Defined at line 1598 of file ../../third_party/abseil-cpp/absl/strings/cord.h
pointer operator-> ()
Defined at line 1602 of file ../../third_party/abseil-cpp/absl/strings/cord.h
Friends
class Cord