Comment voir le code de la bibliothèque iostream de C++


Le C++ lui-même est une spécification, il dit ce que la bibliothèque doit faire et comment elle peut être appelée. Chaque fournisseur de compilateur a son propre code qui satisfait à ces exigences.

Mon code préféré à lire est LLVM libc++ (puisqu'il a été écrit pour C++11 et qu'il n'est't encombré de 20 ans de rétrocompatibilité), alors voici's leur implémentation de la bibliothèque d'entrée/sortie C++:


en-tête:
http://llvm.org/svn/llvm-project/libcxx/trunk/include/iostream
http://llvm.org/svn/llvm-project/libcxx/trunk/include/istream
http://llvm.org/svn/llvm-project/libcxx/trunk/include/ostream
http://llvm.org/svn/llvm-project/libcxx/trunk/include/ios
http://llvm.org/svn/llvm-project/libcxx/trunk/include/streambuf
http://llvm.org/svn/llvm-project/libcxx/trunk/include/__std_stream
http://llvm.org/svn/llvm-project/libcxx/trunk/include/iomanip
http://llvm.org/svn/llvm-project/libcxx/trunk/include/fstream
http://llvm.org/svn/llvm-project/libcxx/trunk/include/sstream
http://llvm.org/svn/llvm-project/libcxx/trunk/include/strstream
http://llvm.org/svn/llvm-project/libcxx/trunk/include/iosfwd
fichiers sources:
http://llvm.org/svn/llvm-project/libcxx/trunk/src/ios.cpp
http://llvm.org/svn/llvm-project/libcxx/trunk/src/iostream.cpp
http://llvm.org/svn/llvm-project/libcxx/trunk/src/strstream.cpp


.