Jump to content

Template:NamespaceRemark: Difference between revisions

From BCI2000 Wiki
Mellinger (talk | contribs)
No edit summary
 
Mellinger (talk | contribs)
No edit summary
 
Line 1: Line 1:
The <tt>{{{Class}}}</tt> class is contained within the <tt>{{{Namespace}}}</tt> namespace. To use it, either qualify its name: <tt>{{{Namespace}}}::{{{Class}}}</tt> (recommended for header files); or put a ''using'' statement on top of the file (recommended for cpp files):
The <tt>{{{class}}}</tt> class is contained within the <tt>{{{namespace}}}</tt> namespace. To use it, either qualify its name: <tt>{{{namespace}}}::{{{class}}}</tt> (recommended for header files); or put a ''using'' statement on top of the file (recommended for cpp files):
  using namespace {{{Namespace}}};
  using namespace {{{namespace}}};

Latest revision as of 15:16, 12 September 2008

The {{{class}}} class is contained within the {{{namespace}}} namespace. To use it, either qualify its name: {{{namespace}}}::{{{class}}} (recommended for header files); or put a using statement on top of the file (recommended for cpp files):

using namespace {{{namespace}}};