Skip to content

Commit

Permalink
add empty() for cpr::Cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoloudongfeng committed Apr 28, 2024
1 parent d47fd88 commit 462a81c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpr/cookies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ void Cookies::emplace_back(const Cookie& str) {
cookies_.emplace_back(str);
}

bool Cookies::empty() {
cookies_.empty();
}

void Cookies::push_back(const Cookie& str) {
cookies_.push_back(str);
}
Expand Down
1 change: 1 addition & 0 deletions include/cpr/cookies.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Cookies {
const_iterator cbegin() const;
const_iterator cend() const;
void emplace_back(const Cookie& str);
bool empty();
void push_back(const Cookie& str);
void pop_back();

Expand Down

0 comments on commit 462a81c

Please sign in to comment.