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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:49:09+00:00 2026-05-27T05:49:09+00:00

Is there some g++ option which shows what classes are created from templates? For

  • 0

Is there some g++ option which shows what classes are created from templates? For example there is template definition in original source code:

template <class T>
struct SomeStruct { T variable; };

SomeStruct<int> instance;

and I would like to see implementation of SomeStruct< int>.

  • 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-27T05:49:10+00:00Added an answer on May 27, 2026 at 5:49 am

    You can get that info with the -fdump-class-hierarchy flag. It’ll list a lot more than you’re asking for, but if search for lines that start with Class, you’ll find what you’re looking for.

    EDIT: Here’s some output from a program that includes iostream. You can see there are instantiations of char and wchar_t:

    Class std::basic_ostream<char, std::char_traits<char> >
    Class std::basic_ostream<char, std::char_traits<char> >::sentry
    Class std::basic_ostream<wchar_t, std::char_traits<wchar_t> >
    Class std::basic_ostream<wchar_t, std::char_traits<wchar_t> >::sentry
    Class std::basic_istream<char, std::char_traits<char> >
    Class std::basic_istream<wchar_t, std::char_traits<wchar_t> >
    Class std::basic_istream<char, std::char_traits<char> >::sentry
    Class std::basic_iostream<char, std::char_traits<char> >
    Class std::basic_istream<wchar_t, std::char_traits<wchar_t> >::sentry
    Class std::basic_iostream<wchar_t, std::char_traits<wchar_t> >
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if there is some option to keep ReSharper from removing just
Are there some principles of organizing classes into namespaces? For example is it OK
Is there some elegant way to add an empty option to a DropDownList bound
Is there some means of querying the system tables to establish which tables are
Is there some way to block access from a referrer using a .htaccess file
I have a widget that shows some data fetched from the Internet. I may
I'm trying to write some Java code for a set of enum classes. Each
I want to implement a suggestion combobox which shows suggestions grabbed from my own
Is there some way I can use URLs like: http://www.blog.com/team-spirit/ instead of http://www.blog.com/?p=122 in
Is there some built-in way to share files between Xen guests? I don't currently

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.