18 curl_easy_cleanup(instance);
22 if (instance_ ==
nullptr)
23 throw std::runtime_error(
"initializing a curl instance failed.");
25 operator CURL*()
const
27 return instance_.get();
31 return instance_.get();
Definition instance.hpp:11
CURL * get() const
Definition instance.hpp:29
std::shared_ptr< CURL > instance_
Definition instance.hpp:35
Instance()
Definition instance.hpp:13
Definition curl_error.hpp:9