|
nfx-stringbuilderpool 1.0.0
High-performance C++20 library for zero-allocation string building with thread-safe pooling
|
Forward-only iterator for character-by-character enumeration of StringBuilder content. More...
#include <nfx/string/StringBuilderPool.h>
Public Member Functions | |
| Enumerator (const StringBuilder &builder) | |
| Constructs an enumerator for iterating over the characters in the given StringBuilder buffer. | |
| ~Enumerator ()=default | |
| Destructor. | |
| bool | next () |
| Advances to the next character in the buffer. | |
| char | current () const |
| Returns the current character in the buffer. | |
| void | reset () |
| Resets the enumerator to the initial position (before the first character). | |
Forward-only iterator for character-by-character enumeration of StringBuilder content.
Provides a simple enumeration interface for iterating through StringBuilder characters one at a time. Features reset capability and bounds-checked iteration with explicit advancement control. Designed for scenarios requiring controlled iteration patterns.
Definition at line 610 of file StringBuilderPool.h.
|
inline |
Constructs an enumerator for iterating over the characters in the given StringBuilder buffer.
| builder | The StringBuilder to enumerate |
|
inline |
Returns the current character in the buffer.
|
inline |
Advances to the next character in the buffer.