Commit 1deaedd
authored
[ADT] Make DenseMapBase::swap the public entry point (#167650)
Without this patch, DenseMap::swap and SmallDenseMap::swap are
inconsistent because DenseMap::swap increments the epoch while
SmallDenseMap::swap does not.
This patch solves the inconsistency by making DenseMapBase::swap the
public entry point and renaming the existing swap to swapImpl.
To ease the review process, this patch does not move or group
functions according to access specifiers like private: and protected:.1 parent b6dd511 commit 1deaedd
1 file changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
363 | 369 | | |
364 | 370 | | |
365 | 371 | | |
| |||
736 | 742 | | |
737 | 743 | | |
738 | 744 | | |
739 | | - | |
| 745 | + | |
740 | 746 | | |
741 | 747 | | |
742 | 748 | | |
| |||
756 | 762 | | |
757 | 763 | | |
758 | 764 | | |
759 | | - | |
760 | | - | |
761 | | - | |
| 765 | + | |
| 766 | + | |
762 | 767 | | |
763 | 768 | | |
764 | 769 | | |
765 | 770 | | |
766 | 771 | | |
767 | 772 | | |
| 773 | + | |
768 | 774 | | |
769 | 775 | | |
770 | 776 | | |
| |||
775 | 781 | | |
776 | 782 | | |
777 | 783 | | |
778 | | - | |
| 784 | + | |
779 | 785 | | |
780 | 786 | | |
781 | 787 | | |
| |||
895 | 901 | | |
896 | 902 | | |
897 | 903 | | |
898 | | - | |
| 904 | + | |
899 | 905 | | |
900 | 906 | | |
901 | 907 | | |
| |||
916 | 922 | | |
917 | 923 | | |
918 | 924 | | |
919 | | - | |
| 925 | + | |
| 926 | + | |
920 | 927 | | |
921 | 928 | | |
922 | 929 | | |
| |||
987 | 994 | | |
988 | 995 | | |
989 | 996 | | |
| 997 | + | |
990 | 998 | | |
991 | 999 | | |
992 | 1000 | | |
| |||
997 | 1005 | | |
998 | 1006 | | |
999 | 1007 | | |
1000 | | - | |
| 1008 | + | |
1001 | 1009 | | |
1002 | 1010 | | |
1003 | 1011 | | |
| |||
0 commit comments