Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel
Commits
2691d10c
Commit
2691d10c
authored
Nov 18, 2022
by
Po-Yen, Chen
Browse files
Use std::move() to avoid object copying
parent
517ff41d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
profiler/src/profiler_operation_registry.hpp
profiler/src/profiler_operation_registry.hpp
+2
-1
No files found.
profiler/src/profiler_operation_registry.hpp
View file @
2691d10c
...
...
@@ -6,6 +6,7 @@
#include <map>
#include <optional>
#include <string_view>
#include <utility>
class
ProfilerOperationRegistry
final
{
...
...
@@ -18,7 +19,7 @@ class ProfilerOperationRegistry final
struct
Entry
final
{
explicit
Entry
(
std
::
string_view
description
,
Operation
operation
)
noexcept
:
description_
(
description
),
operation_
(
operation
)
:
description_
(
description
),
operation_
(
std
::
move
(
operation
)
)
{
}
...
...
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