![]() |
.. (לתיקייה המכילה) | |
Does List type need to define the 'next' nested type when List includes one member? | |
Yes. All non-empty List instantiations should define the 'next' type. An empty list (List<>) should NOT define it (because this is the end of the list). |
When instantiating the Add struct with 2 matrices with different size, what should happen? | |
You should stop the compilation process (similar to what should happen when the matrices are not compatible in Multiply) |
Do we need to check whether the matrices that were instantiated with Add are the same size? | |
Yes, like in Multiply, you need to stop the compilation process if the matrices are not the same size. |
In Add and Multiply, do we need to check every row for its length or is it OK to assume all rows are the same length? | |
You can assume the rows of each matrix are the same in length. |
Should distinct delete non-adjacent members in the Stream? What order should the result be in? | |
The distinct operation should deltee all but one similar objects, even if they're not adjacent. That means std::unique won't work here. The order should be kept. For example, if we apply distinct to the following stream: [1,2,3,4,3,5] the result should be [1,2,3,4,5] |