简体   繁体   中英

Visual Studio C++ intellisense Function Info - How to interpret the various delimiters, types, and acronyms

I am experienced with classic C, C++, but I am now learning how to use the various "newer" resources in the C++ Standard Library.

In Visual Studio, when I start typing a function name, I get a "quick info" definition, with several fields. Usually the function name is preceded by a long list of libraries, parent classes, template typename(s), etc.

How do I interpret these various fields?

Using the std::tuple get<>() function, here is a typical example for VS intellisense popups (with cursor positions shown in red .)

光标选择模板类型名

光标选择参数

I understand that intellisense is first highlighting the template typename, then highlighting the function argument(s).

But how do I make sense of the other fields, preceding the function-name?

For example: constexpr std::tuple_element_t<_ldx, std::pair<_Ty1, _Ty2>> & get<_Idx,_Ty1,_Ty2>(...)

What is preceding function name is it's return type, which in this case is pretty long template with it's arguments.

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