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

Commit de1414d

Browse files
authored
Merge pull request #12 from peroxyacyl/2022.12.01-clear
add method to clear buffer with keeping capacity
2 parents 444c17d + fc7a4e1 commit de1414d

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)