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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:08:31+00:00 2026-05-24T05:08:31+00:00

Is the C++ standard library tied to the compiler or can a different implementation

  • 0

Is the C++ standard library tied to the compiler or can a different implementation be provided?

I wonder about this mostly because it seems that the relation between the typeid keyword and std::type_info hinders this. The typeid keywords depends on the existence of std::type_info, which I would consider to be a dependency in the wrong direction. And I have no idea how a custom implementation should implement the type_info::name() method.

My questions are:

  • Is the standard library replaceable?
  • If yes, then how does one implement std::type_info
  • 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-24T05:08:31+00:00Added an answer on May 24, 2026 at 5:08 am

    Large parts of the library are independent of the compiler, like containers and algorithms.

    Other parts are very much tied to a specific compiler, like you have found – type_info where the library rather documents what the compiler does rather than prescribes it.

    Other similar examples might be bad_exception, std::size_t, and C++11 features like type_traits, atomics, and std::initializer_list, which all need support from the compiler. The library has to be closely matched to what a specific compiler actually does.

    It is possible to write a library that works with several compilers, but not without tuning some low level code to each specific compiler. The libraries mentioned elsewhere does exactly that.

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

Sidebar

Related Questions

The OCaml standard library has a wonderful Set implementation that uses a very efficient
How can we replace a C standard library function with our own implementation of
Is there a standard library or commonly used library that can be used for
I thought I read about a C standard library function recently that was able
In standard library, I found that namespace std is declared as a macro. #define
Is there a standard library method that converts a string that has duration in
Is there a class in the standard library of .NET that gives me the
I have the following problem that the standard library doesn't solve well, and I'm
Is there a reference about C++ Standard Library Exceptions? I just want to know
How can a standard-library module (say math) be accessed when a file prog.py is

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.