class CharIterator
Defined at line 639 of file ../../third_party/abseil-cpp/src/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 647 of file ../../third_party/abseil-cpp/src/absl/strings/cord.h
CharIterator & operator++ ()
Defined at line 1669 of file ../../third_party/abseil-cpp/src/absl/strings/cord.h
CharIterator operator++ (int )
Defined at line 1678 of file ../../third_party/abseil-cpp/src/absl/strings/cord.h
bool operator== (const CharIterator & other)
Defined at line 1684 of file ../../third_party/abseil-cpp/src/absl/strings/cord.h
bool operator!= (const CharIterator & other)
Defined at line 1688 of file ../../third_party/abseil-cpp/src/absl/strings/cord.h
reference operator* ()
Defined at line 1692 of file ../../third_party/abseil-cpp/src/absl/strings/cord.h
Friends
class Cord