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

  • Home
  • SEARCH
  • 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 8433679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:27:17+00:00 2026-06-10T06:27:17+00:00

Do pointers and {l,r}value references belong to the same group of type decorations that

  • 0

Do pointers and {l,r}value references belong to the same group of type decorations that signifies how a type should be accessed? If so, what is the name of this group? For example, {const, volatile, restrict} are all type qualifiers. I am looking for a name like this that can be applied to pointers and references of all kinds (and one that is hopefully mentioned in the standard somewhere).

Thanks for your insight!

  • 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-06-10T06:27:19+00:00Added an answer on June 10, 2026 at 6:27 am

    According to the C++ grammar they are both called a ptr-operator when they occur in a ptr-declarator, as defined in [dcl.decl]/4

    ptr-operator:
        * attribute-specifier-seqopt cv-qualifier-seqopt
        & attribute-specifier-seqopt
        && attribute-specifier-seqopt
        nested-name-specifier * attribute-specifier-seqopt cv-qualifier-seqopt
    

    But that’s just the formal name in the grammar, in terms of how you use pointers and references they are not similar and I don’t think there’s much value in grouping them together. Pointers are objects and can be copied, passed by value, re-assigned etc. whereas references can’t do any of those things, they’re a completely different language construct. Trying to group them into something that “signifies how a type should be accessed” is a mistake IMHO.

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

Sidebar

Related Questions

I've noticed with regard to the std::bad_cast exception that references and pointers don't seem
I have general question regarding the use of pointers vs. references in this particular
I understand the syntax and general semantics of pointers versus references, but how should
Can I get the value of MotionEvent.getRawX()/getRawY() of other pointers ? MotionEvent.getRawX() api reference
When,i try to assign null value to my pointer,it sometimes crashes on that line.
My question is: If a pointer variable has the same address as its value,
I think I understand references and pointers pretty well. Here is what I (think
For example, Don't return objects by value if they are expensive to copy (RVO
I have an STL map that contains shared pointers to objects that are manipulated
I wonder how weak references work internally, for example in .NET or in Java.

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.