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

Commit

Permalink
Merge pull request #12 from peroxyacyl/2022.12.01-clear
Browse files Browse the repository at this point in the history
add method to clear buffer with keeping capacity
  • Loading branch information
peroxyacyl authored Dec 1, 2022
2 parents 444c17d + fc7a4e1 commit de1414d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/influxdb-cpp-rest/influxdb_line.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ namespace influxdb {
return !res.size();
}

inline void clear() {
res.clear();
}

private:
inline void add_comma_if_necessary() {
if (!this->empty())
Expand Down

0 comments on commit de1414d

Please sign in to comment.