cert_info.cpp 860 B

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