I've seen many people regarding them as the same,like unnamed(anonymous) namespace definition
However,there actually seems to be some difference between them,like Are “anonymous structs” standard? And, really, what are they?
As far as I'm concerned,both of them have no name,it seems hard to me to distinguish them from the semantic.
For example,the lambda
is a unnamed object of an unnamed class,can we just say lambda
is a anonymous object of an anonymous class?