简体   繁体   中英

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.

Heres the function I'm looking for:

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 .

#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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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