C++相談室 part145at TECH
C++相談室 part145 - 暇つぶし2ch54:デフォルトの名無しさん
19/09/15 15:30:29.64 w00J0OPy.net
URLリンク(en.cppreference.com)

using namespace ns_name;      //(5)
という形式の 「using-directive (using 指令)」の説明に
5) using-directive: From the point of view of unqualified name lookup of
any name after a using-directive and until the end of the scope in which
it appears, every name from ns_name is visible as if it were declared
in the nearest enclosing namespace which contains both the using-directive
and ns_name.
とあるのですが、
as if it were declared in the nearest enclosing namespace which contains
both the using-directive and ns_name.
の部分の正確な意味が分かりません。個人的には (5) の ns_name までを含めた行全体が、
「using-directive」であるという理解なのですが。
as if it were declared in the nearest enclosing namespace which contains the using-directive.
であるなら分かりますが。どなたか分かる人にご教授いただければ幸いです。


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch