where can I find well documented source code of smart pointers in c++11 -
where can I find well documented source code of smart pointers in c++11 -
i find how smart pointers used in c++11 (implemented memory.h) implemented, preferably in easy-to-read form.
when open /usr/include/memory.h
see this:
// license removed blank lines #ifndef _memory_h #define _memory_h 1 #include <features.h> #ifndef _string_h # include <string.h> #endif /* string.h */ #endif /* memory.h */
in features.h in maze of includes. there document contains details of implementation source codes?
well documented problem. looking @ libc++ , libstdc++ best bet , documenting go along might work. implementations appear pretty reasonable:
http://llvm.org/svn/llvm-project/libcxx/trunk/include/memory http://llvm.org/svn/llvm-project/libcxx/trunk/src/memory.cpp
for llvm seems clean.
c++11
Comments
Post a Comment