Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit fc7a4e1

Browse files
committed
add method to clear buffer with keeping capacity
1 parent 444c17d commit fc7a4e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/influxdb-cpp-rest/influxdb_line.h

+4
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ namespace influxdb {
149149
return !res.size();
150150
}
151151

152+
inline void clear() {
153+
res.clear();
154+
}
155+
152156
private:
153157
inline void add_comma_if_necessary() {
154158
if (!this->empty())

0 commit comments

Comments
 (0)