Gets the "i"th character of the Cord and returns it, provided that 0 <= i < Cord.size().
Declared in <absl/strings/cord.h>
char
operator[](size_t i) const;
NOTE: This routine is reasonably efficient. It is roughly logarithmic based on the number of chunks that make up the cord. Still, if you need to iterate over the contents of a cord, you should use a CharIterator/ChunkIterator rather than call operator[] repeatedly in a loop.
The character at index i.
| Name | Description |
|---|---|
| i | The index of the character to retrieve. |