gpt4 book ai didi

c++ - "indirectly declaring a namespace within another namespace"是什么意思?

转载 作者:可可西里 更新时间:2023-11-01 16:17:43 26 4
gpt4 key购买 nike

[basic.link] C++14 标准中的第 4 段:

An unnamed namespace or a namespace declared directly or indirectly within an unnamed namespace has internal linkage. All other namespaces have external linkage. A name having namespace scope that has not been given internal linkage above has the same linkage as the enclosing namespace if it is the name of ...

上面的“在另一个命名空间中间接声明一个命名空间”是什么意思?

最佳答案

它表示一个命名空间嵌套在一个未命名的命名空间中,因此要么将一个命名空间声明为未命名命名空间的成员,要么将其声明为声明为未命名命名空间成员的命名空间的成员,等等。

关于c++ - "indirectly declaring a namespace within another namespace"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33377899/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com