parameters.h
Go to the documentation of this file.
1 #ifndef CPR_PARAMETERS_H
2 #define CPR_PARAMETERS_H
3 
4 #include <initializer_list>
5 #include <memory>
6 #include <string>
7 
8 #include "cpr/defines.h"
9 
10 namespace cpr {
11 
12 struct Parameter {
13  template <typename KeyType, typename ValueType>
14  Parameter(KeyType&& key, ValueType&& value)
15  : key{CPR_FWD(key)}, value{CPR_FWD(value)} {}
16 
19 };
20 
21 class Parameters {
22  public:
23  Parameters() = default;
24  Parameters(const std::initializer_list<Parameter>& parameters);
25 
26  void AddParameter(const Parameter& parameter);
27 
29 };
30 
31 } // namespace cpr
32 
33 #endif
::std::string string
Definition: gtest-port.h:1129
std::string key
Definition: parameters.h:17
#define CPR_FWD(...)
Definition: defines.h:6
Parameter(KeyType &&key, ValueType &&value)
Definition: parameters.h:14
Definition: auth.cpp:3
std::string content
Definition: parameters.h:28
std::string value
Definition: parameters.h:18


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:16