|
curl-cpp
static c++17 wrapper for curl with -fno-exceptions support
|
#include <curl_slist.hpp>

Classes | |
| struct | const_iterator |
Public Member Functions | |
| slist (void *l) noexcept | |
| slist (const slist &)=delete | |
| slist (slist &&other) noexcept | |
| slist & | operator= (const slist &)=delete |
| slist & | operator= (slist &&other) noexcept |
| void | swap (slist &other) noexcept |
| void | clear () noexcept |
| bool | is_empty () const noexcept |
| auto | begin () const noexcept -> const_iterator |
| auto | end () const noexcept -> const_iterator |
| auto | cbegin () const noexcept -> const_iterator |
| auto | cend () const noexcept -> const_iterator |
| auto | get_underlying_ptr () const noexcept -> void * |
| auto | push_back (const char *str) noexcept -> Ret_except< void, std::bad_alloc > |
Protected Attributes | |
| void * | list = nullptr |
Container wrapper for curl's struct curl_slist, which is a single-linked list storing string.
Thread-safety:
Definition at line 21 of file curl_slist.hpp.
|
noexcept |
Free all elements stored in the slist and the slist itself.
Set protected member slist::list to nullptr.
Definition at line 26 of file curl_slist.cc.
|
noexcept |
Get underlying struct curl_slist* pointer.
Definition at line 81 of file curl_slist.cc.

|
noexcept |
| str | is dupped before adding to the list. Must not be CRLF-terminated for use in curl::Easy_ref_t::set_http_header. |
Definition at line 91 of file curl_slist.cc.
1.8.17