User Tools

Site Tools


c_namespaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
c_namespaces [2018/02/01 14:48]
rpjday [using-Declarations]
c_namespaces [2018/02/01 14:50]
rpjday [using-Directives]
Line 72: Line 72:
  
 ==== using-Declarations ==== ==== using-Declarations ====
 +
 +Read [[http://​en.cppreference.com/​w/​cpp/​language/​namespace#​Using-declarations|this]] carefully.
  
 "makes the symbol name from the namespace ns_name accessible for unqualified lookup as if declared in the same class scope, block scope, or namespace as where this using-declaration appears."​ "makes the symbol name from the namespace ns_name accessible for unqualified lookup as if declared in the same class scope, block scope, or namespace as where this using-declaration appears."​
Line 97: Line 99:
  
 ==== using-Directives ==== ==== using-Directives ====
 +
 +cppreference.com link [[http://​en.cppreference.com/​w/​cpp/​language/​namespace#​Using-directives|here]].
  
 "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."​ "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."​
c_namespaces.txt ยท Last modified: 2018/02/01 14:50 by rpjday