Commit cf96494
authored
maintain base capacity after IterPop iteration (#44)
* maintain base capacity after IterPop iteration
After iteration of the iterator returned from IterPopFront or IterPopBack, the internal buffer was resized using the default base capacity instead of the specified base capacity, if one was provided to the Deque. This issue does not cause any problems, but may lead to more allocations in cases where a larger than default base capacity was specified. This change uses the correct base capacity.
* use const for constant values in tests1 parent 9f53a9e commit cf96494
2 files changed
+26
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
755 | 759 | | |
756 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
757 | 765 | | |
758 | 766 | | |
759 | 767 | | |
| |||
779 | 787 | | |
780 | 788 | | |
781 | 789 | | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
782 | 793 | | |
783 | 794 | | |
784 | 795 | | |
| |||
835 | 846 | | |
836 | 847 | | |
837 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
838 | 853 | | |
839 | | - | |
| 854 | + | |
840 | 855 | | |
841 | 856 | | |
842 | 857 | | |
| |||
860 | 875 | | |
861 | 876 | | |
862 | 877 | | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
863 | 882 | | |
864 | 883 | | |
865 | 884 | | |
| |||
0 commit comments