summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/curl_wrapper.hpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/curl_wrapper.hpp b/include/curl_wrapper.hpp
index fc3bf3f..f4da6ff 100644
--- a/include/curl_wrapper.hpp
+++ b/include/curl_wrapper.hpp
@@ -25,6 +25,7 @@
#include <mutex>
#include <string>
#include <string_view>
+#include <utility>
#include <variant>
#include <vector>
@@ -35,6 +36,7 @@ using std::map;
using std::mutex;
using std::string;
using std::string_view;
+using std::pair;
using std::variant;
using std::vector;
@@ -53,7 +55,7 @@ enum class http_method
};
/*!
- * @brief std::map of parameters for %API calls.
+ * @brief `std::map` of parameters for %API calls.
*
* Example:
* @code
@@ -66,7 +68,16 @@ enum class http_method
*
* @since 0.1.0
*/
-using parametermap = map<string_view, variant<string_view, vector<string_view>>>;
+using parametermap =
+ map<string_view, variant<string_view, vector<string_view>>>;
+
+/*!
+ * @brief A single parameter of a parametermap.
+ *
+ * @since 0.1.0
+ */
+using parameterpair =
+ pair<string_view, variant<string_view, vector<string_view>>>;
/*!
* @brief Handles the details of network connections.