Search code examples
c++standards-compliancestd

Must a C++ Standard Library be implemented in C++?


  1. Must a conforming C++ Standard Library Implementation be implemented in C++?
  2. If not, is it allowed to do magic things that are not doable in pure C++ & Standard Library & some implementation defined behaviour?

  • I am aware that there are parallel implementations that rely on extensions (in pre C++11 at least), but are they really conforming?
  • I couldn't find any requirement in the standard, but maybe my standard-fu is weak today

Solution

  • No.

    Actually, it is even prescribed by the Standard that #include <map> (for example) could simply import a pre-stored AST and not refer to a file, at all.