Defined in header <cparse/Cursor.hh>
virtual ~Cursor();
Destroys the Cursor. Releases the shared_ptr to the underlying stream and to the filename string. If no other Cursor (or Parser) holds a reference to that stream, the stream is destroyed and — for file streams opened by overload 1 of the constructor — the file is closed.
Parameters
None.
Exceptions
Does not throw. Destruction is not marked noexcept explicitly but the body only releases shared_ptr members.
Notes
The destructor is virtual. The class is not final, though no subclasses of Cursor exist inside cparse itself. The virtual destructor is a hedge against future subclassing rather than a current requirement.
See also
- Cursor::(constructor) — constructs the cursor.

