summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortastytea2020-01-10 12:18:46 +0100
committertastytea2020-01-10 12:22:14 +0100
commit529e4bca6dcc7a5478c8247e2917f4905d8835b9 (patch)
tree52e581d3a0eadc5e0bf17905d5859bf793163dae /include
parent1263b03999bb0f6f38f725cf25b33c6da96e0053 (diff)
downloadmastodonpp-529e4bca6dcc7a5478c8247e2917f4905d8835b9.tar
mastodonpp-529e4bca6dcc7a5478c8247e2917f4905d8835b9.tar.gz
mastodonpp-529e4bca6dcc7a5478c8247e2917f4905d8835b9.zip
Add parameterpair.
Diffstat (limited to 'include')
-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.