Difference between revisions of "Talk:cpp/symbol index"
(r) |
|||
Line 15: | Line 15: | ||
: Yes, as the page states, symbols that are actually C functions, like the printf family, are left out on purpose. I suggest, these should be listed in a "C Symbols Index". [[User:Gemini67|Gemini67]] ([[User talk:Gemini67|talk]]) 06:56, 23 August 2017 (PDT) | : Yes, as the page states, symbols that are actually C functions, like the printf family, are left out on purpose. I suggest, these should be listed in a "C Symbols Index". [[User:Gemini67|Gemini67]] ([[User talk:Gemini67|talk]]) 06:56, 23 August 2017 (PDT) | ||
:: That's not right though. {{c|std::printf}} is a C++ symbol defined by the C++ standard library. --[[User:Cubbi|Cubbi]] ([[User talk:Cubbi|talk]]) 06:58, 23 August 2017 (PDT) | :: That's not right though. {{c|std::printf}} is a C++ symbol defined by the C++ standard library. --[[User:Cubbi|Cubbi]] ([[User talk:Cubbi|talk]]) 06:58, 23 August 2017 (PDT) | ||
+ | ::: But it is not a separate implementation of this function, it is just the C function printf() imported into the C++ std namespace. At least when I look at the cstdio file I have at hand. I would prefer to have all these 'imported' functions in a separate index. But if a majority votes for adding them here, I'll do it. [[User:Gemini67|Gemini67]] ([[User talk:Gemini67|talk]]) 07:17, 23 August 2017 (PDT) |
Revision as of 06:17, 23 August 2017
You can poach MediaWiki:Cpp-search-list-cpp for the list of all standard library symbols, if you really want to do this. --Cubbi (talk) 06:29, 8 August 2016 (PDT)
- Thank you! I cannot directly extract the information I want to display from this file, but I can use it as a checklist to see what is missing :-) -- Gemini67 (talk) 06:57, 8 August 2016 (PDT)
By the way, I'm curious how you'd tackle overloads that appear on different pages, such as single-argument std::move vs 3/4-argument std::move or the single-argument std::remove vs 2/3/4-argument std::remove. I see you already have std::move linking to the multi-argument version. --Cubbi (talk) 04:58, 9 August 2016 (PDT)
- I think I'll do it as the search results are displayed: Two entries, with (utility) or (algorithm) added in parentheses. Gemini67 (talk) 10:17, 13 August 2016 (PDT)
make namespaces more noticable?
I didn't realize there's a lot more to see if I click on a namespace until I clicked on one. Perhaps they deserve some sort of an indicator that makes them stand out as much as the collapsed atomics. Maybe at least an icon like ▶? --Cubbi (talk) 08:02, 11 September 2016 (PDT)
- Good point. I first tried to write 'namespace' before it, but the icon is better. Done. Gemini67 (talk) 04:12, 25 September 2016 (PDT)
printf and friends?
It was pointed out on SO that std::printf is missing from this index, and by the looks of it, the whole cpp/io/c is missing. --Cubbi (talk) 05:50, 7 August 2017 (PDT)
- Yes, as the page states, symbols that are actually C functions, like the printf family, are left out on purpose. I suggest, these should be listed in a "C Symbols Index". Gemini67 (talk) 06:56, 23 August 2017 (PDT)
- That's not right though. std::printf is a C++ symbol defined by the C++ standard library. --Cubbi (talk) 06:58, 23 August 2017 (PDT)
- But it is not a separate implementation of this function, it is just the C function printf() imported into the C++ std namespace. At least when I look at the cstdio file I have at hand. I would prefer to have all these 'imported' functions in a separate index. But if a majority votes for adding them here, I'll do it. Gemini67 (talk) 07:17, 23 August 2017 (PDT)
- That's not right though. std::printf is a C++ symbol defined by the C++ standard library. --Cubbi (talk) 06:58, 23 August 2017 (PDT)