| 42 | * and its value. |
| 43 | */ |
| 44 | template<class T, class K> class curl_pair { |
| 45 | public: |
| 46 | /** |
| 47 | * The two parameters constructor gives users a fast way to |
| 48 | * build an object of this type. |
| 49 | */ |
| 50 | curl_pair(const T option, const K &value) : option(option), value(value) {}; |
| 51 | /** |
| 52 | * Simple method that returns the first field of the pair. |
| 53 | */ |
| 54 | inline T first() const NOEXCEPT { |
| 55 | return this->option; |
| 56 | } |
| 57 | /** |
| 58 | * Simple method that returns the second field of the pair. |
| 59 | */ |
| 60 | inline K second() const NOEXCEPT { |
| 61 | return this->value; |
| 62 | } |
| 63 | private: |
| 64 | const T option; |
| 65 | const K &value; |
| 66 | }; |
| 67 | |
| 68 | /** |
| 69 | * Template specialization for C++ strings and CURLformoption. |
nothing calls this directly
no outgoing calls
no test coverage detected