...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns true
if the message
semantics require an end of file.
bool need_eof() const;
Depending on the contents of the header, the parser may require and end
of file notification to know where the end of the body lies. If this function
returns true
it will be necessary
to call put_eof
when there will never
be additional data from the input.