C++11 在哪里可以找到c+;中的智能指针的文档化源代码+;11

C++11 在哪里可以找到c+;中的智能指针的文档化源代码+;11,c++11,C++11,我想了解c++11中使用的智能指针(由memory.h实现)是如何实际实现的,最好是以某种易于阅读的形式实现 当我打开/usr/include/memory.h时,我看到的是: // license removed as well as blank lines #ifndef _MEMORY_H #define _MEMORY_H 1 #include <features.h> #ifndef _STRING_H # include <string.h> #e

我想了解c++11中使用的智能指针(由memory.h实现)是如何实际实现的,最好是以某种易于阅读的形式实现

当我打开
/usr/include/memory.h
时,我看到的是:

// license removed as well as blank lines
#ifndef _MEMORY_H
#define _MEMORY_H       1
#include <features.h>
#ifndef _STRING_H
# include <string.h>
#endif  /* string.h  */
#endif  /* memory.h  */
//删除了许可证和空行
#ifndef\u内存\u H
#定义内存1
#包括
#ifndef\u字符串\u H
#包括
#endif/*string.h*/
#endif/*memory.h*/

在features.h中,我进入了另一个包含的迷宫。是否有一些文档包含了实现的详细信息以及源代码?

问题在于文档记录良好。查看libc++和libstdc++可能是最好的选择,然后在进行过程中对其进行文档记录可能会奏效。这些实现看起来相当合理:


对于llvm,它看起来相当干净。

您可以查看boost源代码,实现应该类似。