Can the ordering of std::type_index be relied on to be stable over
- multiple invocations of the same executable file
- multiple invocations of the different executable file with the number and names of classes not changed
- even if some of these classes are defined in an unnamed namespace
I know that std::type_info does not guarantee such thing?
Does std::type_index?
Should one rather use std::type_info::name() for the ordering?