Optimize emplace() for exactly a value_type or init_type argument (#227)

* Add structs to count special member functions

* Add failing emplace tests, that will pass after making the optimization

* Optimize emplace() to not allocate when we already have a value_type or init_type

* Fix newly failing cfoa tests
This commit is contained in:
Braden Ganetsky authored and GitHub committed 2023-12-31 18:56:14 +01:00
1 parent 75a94781d5
commit 67c5cdb3a6
10 files changed
+418 -37

No files matched your search

+2
View File
@@ -85,6 +85,7 @@ local FCA_TESTS =
contains_tests
copy_tests
deduction_tests
emplace_smf_tests
emplace_tests
equality_tests
equivalent_keys_tests
@@ -201,6 +202,7 @@ local FOA_TESTS =
assign_tests
insert_tests
insert_hint_tests
emplace_smf_tests
emplace_tests
erase_tests
merge_tests