setCursorPosition

Buffer::setCursorPosition

Sets the Buffer’s cursor’s position.

Declaration

void setCursorPosition(size_t cursorPosition);

Parameters

Name

Type

Description

cursorPosition

size_t

The position to set the Buffer’s cursor to.

Returns

None.

Notes

If cursorPosition exceeds the size of the Buffer, this function will throw an std::out_of_range exception.