cpp-docs icon indicating copy to clipboard operation
cpp-docs copied to clipboard

Update `<array>` functions reference

Open Rageking8 opened this issue 4 months ago • 4 comments

Overall changes

  • Make template parameter names more readable
  • Add bunch of std:: and "Template parameters" headings
  • Simplify single "See also" link and update metadata

get

  • Add missing const&& overload
Overload # microsoft/STL cplusplus/draft
1 stl/inc/array#L852-L853 source/containers.tex#L6099-L6100
2 stl/inc/array#L866-L867 source/containers.tex#L6103-L6104
3 stl/inc/array#L876-L877 source/containers.tex#L6101-L6102
4 stl/inc/array#L890-L891 source/containers.tex#L6105-L6106

swap

  • For now, I skipped the noexcept specification introduced in C++17 as I need more time to think how to best represent it
Overload # microsoft/STL cplusplus/draft
1 stl/inc/array#L771-L772 source/containers.tex#L6083-L6084

to_array

  • Document C++20 std::to_array function
  • In the example output, the trailing spaces are preserved but the NUL character is stripped to prevent issues
Overload # microsoft/STL cplusplus/draft
1 stl/inc/array#L828-L829 source/containers.tex#L6087-L6088
2 stl/inc/array#L837-L838 source/containers.tex#L6089-L6090

Rageking8 avatar Aug 20 '25 11:08 Rageking8