| 12 | } |
| 13 | |
| 14 | int main() |
| 15 | { |
| 16 | Array<std::string> strings { 123 }; |
| 17 | strings = buildStringArray(1'000); // Assign an rvalue to strings |
| 18 | |
| 19 | Array<std::string> more_strings{ 2'000 }; |
| 20 | strings = std::move(more_strings); // Move more_strings into strings |
| 21 | |
| 22 | /* Caution: once moved, an object should not be used anymore! */ |
| 23 | // std::cout << more_strings[101] << std::endl; // ??? |
| 24 | } |
nothing calls this directly
no test coverage detected