Skip to content

Instantly share code, notes, and snippets.

@dodheim
Created December 2, 2016 12:15
Show Gist options
  • Save dodheim/8ad418951b172dd4fe55ec4222f8e6bd to your computer and use it in GitHub Desktop.
Save dodheim/8ad418951b172dd4fe55ec4222f8e6bd to your computer and use it in GitHub Desktop.
Survey for VC++ regarding insert and emplace - VC++ 2017 RC
--insert lvalue no reallocation--
0
1
1
0
1
3
----
--emplace lvalue no reallocation--
0
1
1
0
1
3
----
--insert xvalue no reallocation--
0
1
0
0
2
3
----
--emplace xvalue no reallocation--
0
1
0
0
2
3
----
--insert rvalue no reallocation--
1
2
0
0
2
3
----
--emplace rvalue no reallocation--
1
2
0
0
2
3
----
--insert lvalue reallocation--
0
3
1
0
3
0
----
--emplace lvalue reallocation--
0
3
1
0
3
0
----
--insert xvalue reallocation--
0
3
0
0
4
0
----
--emplace xvalue reallocation--
0
3
0
0
4
0
----
--insert rvalue reallocation--
1
4
0
0
4
0
----
--emplace rvalue reallocation--
1
4
0
0
4
0
----
--push_back lvalue no reallocation--
0
0
1
0
0
0
----
--emplace_back lvalue no reallocation--
0
0
1
0
0
0
----
--push_back xvalue no reallocation--
0
0
0
0
1
0
----
--emplace_back xvalue no reallocation--
0
0
0
0
1
0
----
--push_back rvalue no reallocation--
1
1
0
0
1
0
----
--emplace_back rvalue no reallocation--
1
1
0
0
1
0
----
--push_back lvalue reallocation--
0
3
1
0
3
0
----
--emplace_back lvalue reallocation--
0
3
1
0
3
0
----
--push_back xvalue reallocation--
0
3
0
0
4
0
----
--emplace_back xvalue reallocation--
0
3
0
0
4
0
----
--push_back rvalue reallocation--
1
4
0
0
4
0
----
--emplace_back rvalue reallocation--
1
4
0
0
4
0
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment