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 735577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:30:23+00:00 2026-05-14T07:30:23+00:00

Some days ago I looked at boost sources and found interesting typedef . There

  • 0

Some days ago I looked at boost sources and found interesting typedef.

There is a code from “boost\detail\none_t.hpp”:

namespace boost {

namespace detail {

struct none_helper{};

typedef int none_helper::*none_t ;

} // namespace detail

} // namespace boost

I didn’t see syntax like that earlier and can’t explain the sense of that.

This typedef introduces name “none_t” as pointer to int in boost::detail namespace.

What the syntax is?

And what difference between “typedef int none_helper::*none_t” and for example “typedef int *none_t” ?

  • 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-14T07:30:23+00:00Added an answer on May 14, 2026 at 7:30 am

    The syntax is for a pointer to member – here it typedefs none_t as a pointer to an int data member of none_helper.

    The syntax can be used e.g. this way:

     struct X { int i; };
    
     typedef int X::*PI;
     PI pi = &X::i;
     X* x = foo();
     x->*pi = 42;
    

    InformIT has an article on member pointers, containing more details.

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

Sidebar

Related Questions

Some days ago I was searching on the net and I found an interesting
Some days ago I found a great project: vs-android. It allows you to build
My Eclipse is downloaded some days ago from http://www.eclipse.org/downloads/ and the type is Eclipse
Some days ago, I have found a useful link in which a day on
Xcode 4.3 was released some days ago, but there's only a version for Lion:
A few days ago I posted some code like this: StreamWriter writer = new
I'm getting an error on some code that two days ago was running fine.
Some days ago I asked a question about tagging differencies in 2 text files,
Some days ago I started using partitioning to make it possible to work with
I posted some days ago this question: How to intersect multiple polygons? . Now

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.