Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4613722
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:35:40+00:00 2026-05-22T01:35:40+00:00

A point from ISO draft n3290 section 3.3.9 paragraph 4: The declarative region of

  • 0

A point from ISO draft n3290 section 3.3.9 paragraph 4:

The declarative region of the name of a template parameter is nested within the
immediately-enclosing declarative
region.[Note: As a result, a
template-parameter hides any entity
with the same name in an enclosing
scope (3.3.10).

Example:
typedef int N;
template<N X, typename N, template<N Y> class T> struct A;

Can any one please ….tell some other example other than this ..where & where this situation erises

draft link n3290: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3290.pdf

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:35:40+00:00Added an answer on May 22, 2026 at 1:35 am

    I think it is quite obvious: any time that an entity in the scope of the template declaration has the same name as one of the template parameters, the name will be hidden within the template. If you are having problems coming up with examples chances are that you did not understand the meaning of the quote. What is it that you understood? What is it that you have troubles understanding?

    Also for those that don’t want to go into the standard, it is important to complete the original quote:

       typedef int N;
       template<N X, typename N, template<N Y> class T> struct A;
    

    Here, X is a non-type template parameter of type int and Y is a non-type template parameter of the same type as the second template parameter of A. — end example ] — end note ]

    Which helps understanding the example. Note what the quote means: the first N refers to the typedef at the namespace scope, then a template argument N is introduced. From there on, the template argument hides the outer N, and the next appearance of N refers to the template argument and not to the outer N (only within the declarative scope of the template)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A point from ISO draft n3290 section 3.4.2 paragraph 1: When the postfix-expression in
A point from N3290 draft ISO Standard, §3.4.1/12: During the lookup of a name
This is the statement from ISO C++ Standard 14.6.4.1 Point of instantiation 4.If a
This is the statement from ISO C++ Standard 14.6.4.1 Point of instantiation For a
This is the statement from ISO C++ Standard 14.6.2.4: Dependent template arguments : A
Does anyone know of a graphing library for simple transformation of a point from
Say you have a shipment. It needs to go from point A to point
In C++, what alternatives do I have for exposing a collection, from the point
From a web developer point of view, what changes are expected in the development
Talking from a 'best practice' point of view, what do you think is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.