3 ms·
List<?> can be queried, e.g. you can write `Object obj = list.get(0)`, but you can't put anything into it, e.g. `list.add(anything)` will not compile. I'm not s
by vbezhenar 5y ago
List<?> can be queried, e.g. you can write `Object obj = list.get(0)`, but you can't put anything into it, e.g. `list.add(anything)` will not compile. I'm not sure you can find similar concept in C++.
- pjmlp 5y agoUntil reflection comes into play, you can get similar capabilities with template meta-programming.