Commit 88ef274
authored
[ADT] Apply Rule of Five to StringTable::Iterator (llvm#160815)
StringTable::Iterator has a user-defined copy assignment operator, a defaulted copy constructor, and a defaulted move constructor. This patch makes the copy assignment operator defaulted and adds a defaulted move assignment operator to adhere to the Rule of Five while making the operators constexpr.1 parent 6598e31 commit 88ef274
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 121 | + | |
| 122 | + | |
127 | 123 | | |
128 | 124 | | |
129 | 125 | | |
| |||
0 commit comments