简体   繁体   English

在哪里可以找到C ++标准库中特定功能的源代码? (Visual Studio安装)

[英]Where to find source code for specific function in C++ standard library? (Visual Studio installation)

I'm looking at files in my Visual Studio 2013 installation but I can't find a specific function. 我正在查看Visual Studio 2013安装中的文件,但找不到特定功能。

Heres the function I'm looking for: 这是我要寻找的功能:

http://www.cplusplus.com/reference/set/set/erase/ http://www.cplusplus.com/reference/set/set/erase/

I'm trying to implement something similar but wanted to see the source code in the standard library but there are so many files in there that I can't find it. 我正在尝试实现类似的功能,但想查看标准库中的源代码,但是其中有太多文件,我找不到它。 Any idea anyone? 有人知道吗?

My suggestion is to type your desired type of method, put the cursor on it then press F12 . 我的建议是键入所需的方法类型,将光标放在其上,然后按F12

#include <set>

...

std::set::era|se
             ^ Cursor; then press F12

Alternatively, you could use "Find References" which can be found when right-clicking on a symbol. 另外,您可以使用“查找参考”,当右键单击一个符号时可以找到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM