garlfd
garlfd

Reputation: 149

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?

Upvotes: 0

Views: 1565

Answers (1)

Mark Garcia
Mark Garcia

Reputation: 17708

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.

Upvotes: 2

Related Questions