There's a lot of activity on meta bemoaning the loss of the "lacks sufficient understanding" close reason. Very little of it addresses what I considered to be the intended target of that close reason:
Questions which come from an alternate universe, because their premises are counterfactual / break the laws of physics in the one I (and Stack Overflow) exist in.
A hypothetical title of such a question would be:
How can I configure the size of the
std::map
hash table in order to reduce collisions?
It could be well-written, specific, include details about the library version and an SSSCE of code that uses a std::map
..., and it still is a bad question.
For those of you who aren't familiar with the C++ standard library containers, the reason this question is trash is because std::map
is usually implemented as a red-black tree and cannot be a hash-table due to the iteration ordering requirements in the Standard.
In the past, the correct thing to do was leave a comment saying that there is no hash table to configure, and close as "lacks sufficient understanding". Can't do that any more.
What is the correct response when someone doesn't understand what they're asking, to the point where they ask for something completely impossible? The question can't be edited into shape1, because once you remove the fallacy, there's nothing left. Is that comment now a valid answer? Does another close reason apply?
Here's a real "Not in my universe question" with a terrible title that isn't representative of the actual question content:
1 These are necessarily X-Y problem questions, but no third-party can guess what X was, let alone properly describe it in order to salvage the question.
std::map
in insertion order?" The iteration order ofstd::map
does exist -- it's sorted by key, and the insertion order does exist, but the insertion order isn't remembered so there's no solution). In the latter two cases, being a good or bad idea is irrelevant.std::map
, which typically uses a red-black tree internally, withstd::unordered_map
, which uses a hash table internally. You can set the size of astd::unordered_map
like so..." It's not a very compelling example, because the question could be trivially edited to be sensible (which the asker could do as soon as you explained they were confusingmap
andunordered_map
).std::unordered_map
? They may be using other features thatunordered_map
does not have, or even third-party code that specifically usesstd::map
. Edits should clarify question, not replace them, and your approach replaces the question. Your answer is a comment, not an answer... which as I said, used to be the way this was handled -- with a comment and a close vote. That way is no longer available.