boost :: format.parse()也会重置它的缓冲区吗?

时间:2021-11-27 17:10:09

boost/format/format_class.hpp doesn't mention that parse() would run clear() first. Every examples I can found calls clear() before parse(). Is it necessary?

boost / format / format_class.hpp没有提到parse()会首先运行clear()。我发现的每个例子都在parse()之前调用clear()。有必要吗?

1 个解决方案

#1


0  

No, it shouldn't be.

不,它不应该。

boost/format/format_class.hpp does mention this in it's file

boost / format / format_class.hpp确实在它的文件中提到了这一点

basic_format& parse(const string_type&); // resets buffers and parse a new format string

#1


0  

No, it shouldn't be.

不,它不应该。

boost/format/format_class.hpp does mention this in it's file

boost / format / format_class.hpp确实在它的文件中提到了这一点

basic_format& parse(const string_type&); // resets buffers and parse a new format string