locked
namespace RRS feed

  • Question

  • Are there any other namespace other than std?
    • Moved by CoolDadTx Monday, April 11, 2011 1:44 PM C++ related (From:Visual C# General)
    Monday, April 11, 2011 10:09 AM

Answers

  • Hi DJRM,

    In Visual C++, there is stdext namespace as well.
    Please note that its not a part of C++ standard specification.

    Best Regards,
    Jijo.

     


    http://weseetips.com[^] Visual C++ tips and tricks. Completely revamped!
    • Marked as answer by Rob Pan Friday, April 15, 2011 8:59 AM
    Monday, April 11, 2011 1:48 PM
  • The question is a bit unclear.  You can make as many namespaces as you like.  So in any given compilation unit there could potentially be hundreds or more namespaces (although that would be uncommon)

    Officially from the standardization committee, there is std.  There is also std::tr1, although I suspect that that will be deprecated when the new standard is complete.

    Microsoft provides stdext for a few extension libraries they provide, although there are now suitable replacements for those in std (VS2010) or std::tr1 (VS2008).

    Another common one you will bump into on these forums include boost.

    Most library providers will wrap their code in a namespace as well.

    • Proposed as answer by Jijo Raj Monday, April 11, 2011 2:01 PM
    • Marked as answer by Rob Pan Friday, April 15, 2011 8:59 AM
    Monday, April 11, 2011 1:59 PM

All replies

  • I think you should ask in a C++ forum.
    Monday, April 11, 2011 11:43 AM
  • Hi DJRM,

    In Visual C++, there is stdext namespace as well.
    Please note that its not a part of C++ standard specification.

    Best Regards,
    Jijo.

     


    http://weseetips.com[^] Visual C++ tips and tricks. Completely revamped!
    • Marked as answer by Rob Pan Friday, April 15, 2011 8:59 AM
    Monday, April 11, 2011 1:48 PM
  • The question is a bit unclear.  You can make as many namespaces as you like.  So in any given compilation unit there could potentially be hundreds or more namespaces (although that would be uncommon)

    Officially from the standardization committee, there is std.  There is also std::tr1, although I suspect that that will be deprecated when the new standard is complete.

    Microsoft provides stdext for a few extension libraries they provide, although there are now suitable replacements for those in std (VS2010) or std::tr1 (VS2008).

    Another common one you will bump into on these forums include boost.

    Most library providers will wrap their code in a namespace as well.

    • Proposed as answer by Jijo Raj Monday, April 11, 2011 2:01 PM
    • Marked as answer by Rob Pan Friday, April 15, 2011 8:59 AM
    Monday, April 11, 2011 1:59 PM