| 1 | #include "cpr/cert_info.h" | 
|---|---|
| 2 | |
| 3 | namespace cpr { | 
| 4 | |
| 5 | std::string& CertInfo::operator[](const size_t& pos) { | 
| 6 | return cert_info_[pos]; | 
| 7 | } | 
| 8 | |
| 9 | CertInfo::iterator CertInfo::begin() { | 
| 10 | return cert_info_.begin(); | 
| 11 | } | 
| 12 | CertInfo::iterator CertInfo::end() { | 
| 13 | return cert_info_.end(); | 
| 14 | } | 
| 15 | |
| 16 | CertInfo::const_iterator CertInfo::begin() const { | 
| 17 | return cert_info_.begin(); | 
| 18 | } | 
| 19 | |
| 20 | CertInfo::const_iterator CertInfo::end() const { | 
| 21 | return cert_info_.end(); | 
| 22 | } | 
| 23 | |
| 24 | CertInfo::const_iterator CertInfo::cbegin() const { | 
| 25 | return cert_info_.cbegin(); | 
| 26 | } | 
| 27 | |
| 28 | CertInfo::const_iterator CertInfo::cend() const { | 
| 29 | return cert_info_.cend(); | 
| 30 | } | 
| 31 | |
| 32 | void CertInfo::emplace_back(const std::string& str) { | 
| 33 | cert_info_.emplace_back(args: str); | 
| 34 | } | 
| 35 | |
| 36 | void CertInfo::push_back(const std::string& str) { | 
| 37 | cert_info_.push_back(x: str); | 
| 38 | } | 
| 39 | |
| 40 | void CertInfo::pop_back() { | 
| 41 | cert_info_.pop_back(); | 
| 42 | } | 
| 43 | } // namespace cpr | 
| 44 |