The following example demonstrates how such an implementation might look. In the class
inbuf, an input buffer with ten characters is implemented. This buffer is split into a maximum
of four characters for the putback area and six characters for the “normal” input buffer: