We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ac23a commit 22ce9b1Copy full SHA for 22ce9b1
cpr/file.cpp
@@ -5,11 +5,7 @@
5
6
namespace cpr {
7
8
-Files::Files(const std::initializer_list<std::string>& p_filepaths) {
9
- for (const std::string& filepath : p_filepaths) {
10
- files.emplace_back(filepath);
11
- }
12
-}
+Files::Files(const std::initializer_list<std::string>& p_filepaths) : files(p_filepaths.begin(), p_filepaths.end()) {}
13
14
Files::iterator Files::begin() {
15
return files.begin();
0 commit comments