Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() const {
return 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);
[[nodiscard]] bool empty() const;
void push_back(const Cookie& str);
void pop_back();

Expand Down