MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / curl_pair

Class curl_pair

include/curl_pair.h:44–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected