#ifndef CPR_CERT_INFO_H #define CPR_CERT_INFO_H #include #include #include namespace cpr { class CertInfo { private: std::vector cert_info_; public: CertInfo() = default; CertInfo(const CertInfo& other) = default; CertInfo(CertInfo&& old) = default; CertInfo(const std::initializer_list& entry) : cert_info_{entry} {} ~CertInfo() noexcept = default; using iterator = std::vector::iterator; using const_iterator = std::vector::const_iterator; std::string& operator[](const size_t& pos); iterator begin(); iterator end(); const_iterator begin() const; const_iterator end() const; const_iterator cbegin() const; const_iterator cend() const; void emplace_back(const std::string& str); void push_back(const std::string& str); void pop_back(); }; } // namespace cpr #endif