Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
f74c2a8d
Commit
f74c2a8d
authored
May 01, 2019
by
Paul
Browse files
Add moves to string parameters
parent
27d8d5b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/include/migraphx/stringutils.hpp
src/include/migraphx/stringutils.hpp
+1
-1
No files found.
src/include/migraphx/stringutils.hpp
View file @
f74c2a8d
...
@@ -39,7 +39,7 @@ inline std::string join_strings(Strings strings, const std::string& delim)
...
@@ -39,7 +39,7 @@ inline std::string join_strings(Strings strings, const std::string& delim)
auto
nit
=
std
::
next
(
it
);
auto
nit
=
std
::
next
(
it
);
return
std
::
accumulate
(
return
std
::
accumulate
(
nit
,
strings
.
end
(),
*
it
,
[
&
](
std
::
string
x
,
std
::
string
y
)
{
return
x
+
delim
+
y
;
});
nit
,
strings
.
end
(),
*
it
,
[
&
](
std
::
string
x
,
std
::
string
y
)
{
return
std
::
move
(
x
)
+
delim
+
std
::
move
(
y
)
;
});
}
}
template
<
class
F
>
template
<
class
F
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment