Skip to content

Commit 10bcbf8

Browse files
TaojunshenTylerMSFTv-rajagtPRMerger14PRMerger7
authored
7/11/2022 AM Publish (MicrosoftDocs#4414)
* update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * Arm64EC ABI * Fix bot comments * Acrolinx and style updates * update after review * Add EC function name decoration section * Remove duplicated typedef * Add decorated names updates * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo * PR feedback * updating this keyword * resolving error * Fix a typo in Decorated names * Typo "MSBUILD.exe"→"MSBuild.exe" https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170 https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/build/reference/mp-build-with-multiple-processes.md #PingMSFTDocs * Ranges (#4314) * draft * add begin() * add stubs * work * added art * days work * finish draft of namespace level functions * fix filenames * cleanup pass * minor update * stash * clean up adaptors sectin * start discussion of views and range adaptors * fix return value heading * tech review * acrolinx type fixes * Update docs/standard-library/range-functions.md Co-authored-by: Casey Carter <cartec69@gmail.com> * tech review2 * fix typo * one more typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * update after review * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4347) * 6/8/2022 AM Publish (#4339) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> * 6/9/2022 AM Publish (#4342) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 6/10/2022 AM Publish (#4345) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4348) * 6/8/2022 AM Publish (#4339) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> * 6/9/2022 AM Publish (#4342) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 6/10/2022 AM Publish (#4345) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * Typo "MSBUILD.exe"→"MSBuild.exe" https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170 https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/build/reference/mp-build-with-multiple-processes.md #PingMSFTDocs * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * 6/13/2022 AM Publish (#4346) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo * Ranges (#4314) * draft * add begin() * add stubs * work * added art * days work * finish draft of namespace level functions * fix filenames * cleanup pass * minor update * stash * clean up adaptors sectin * start discussion of views and range adaptors * fix return value heading * tech review * acrolinx type fixes * Update docs/standard-library/range-functions.md Co-authored-by: Casey Carter <cartec69@gmail.com> * tech review2 * fix typo * one more typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Casey Carter <cartec69@gmail.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Hiroshi Yoshioka <40815708+hyoshioka0128@users.noreply.github.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Consolidate manifest docs, updates for 3974, 3972, 3954 (#4343) * Consolidate manifest docs, 3972 3954 * Fix build warning * Consolidate See also sections * Add function overloading for 3974 * Fix broken anchor links for redirects * update after review * use capitalized ARM * update docs to clarify volatile flag for ARM64EC * update after review * Add vectorcall doc update for ARM64EC * update F1 help metadata (#4352) * update F1 help metadata * small fixes * fix metadata Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> * Followup for cpp-docs PR 3977 (#4355) * Edits to improve SEO and usability. (#4350) * Edits to improve SEO and usability. * Incorporate feedback. * resolving blocking issues * updating this keyword -3 (#4353) * updating this keyword-3 * update after review * resolving validation warning * update after review * fix examples * Address C4743 weirdness per 3955 (#4359) * updating this keyword-4 * Acrolinx update * Acrolinx update * Acrolix update * update after review * Add documentation for C6390. * removed typo in macro the asterisk was repeated incorrectly * updating this keyword -5 * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4364) * 6/17/2022 AM Publish (#4361) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * Arm64EC ABI * Fix bot comments * Acrolinx and style updates * update after review * Add EC function name decoration section * Remove duplicated typedef * Add decorated names updates * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo * PR feedback * updating this keyword * resolving error * Fix a typo in Decorated names * Typo "MSBUILD.exe"→"MSBuild.exe" https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170 https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/build/reference/mp-build-with-multiple-processes.md #PingMSFTDocs * Ranges (#4314) * draft * add begin() * add stubs * work * added art * days work * finish draft of namespace level functions * fix filenames * cleanup pass * minor update * stash * clean up adaptors sectin * start discussion of views and range adaptors * fix return value heading * tech review * acrolinx type fixes * Update docs/standard-library/range-functions.md Co-authored-by: Casey Carter <cartec69@gmail.com> * tech review2 * fix typo * one more typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * update after review * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4347) * 6/8/2022 AM Publish (#4339) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> * 6/9/2022 AM Publish (#4342) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 6/10/2022 AM Publish (#4345) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4348) * 6/8/2022 AM Publish (#4339) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> * 6/9/2022 AM Publish (#4342) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 6/10/2022 AM Publish (#4345) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * Typo "MSBUILD.exe"→"MSBuild.exe" https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170 https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/build/reference/mp-build-with-multiple-processes.md #PingMSFTDocs * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * 6/13/2022 AM Publish (#4346) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo * Ranges (#4314) * draft * add begin() * add stubs * work * added art * days work * finish draft of namespace level functions * fix filenames * cleanup pass * minor update * stash * clean up adaptors sectin * start discussion of views and range adaptors * fix return value heading * tech review * acrolinx type fixes * Update docs/standard-library/range-functions.md Co-authored-by: Casey Carter <cartec69@gmail.com> * tech review2 * fix typo * one more typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Casey Carter <cartec69@gmail.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Hiroshi Yoshioka <40815708+hyoshioka0128@users.noreply.github.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Consolidate manifest docs, updates for 3974, 3972, 3954 (#4343) * Consolidate manifest docs, 3972 3954 * Fix build warning * Consolidate See also sections * Add function overloading for 3974 * Fix broken anchor links for redirects * update after review * use capitalized ARM * update docs to clarify volatile flag for ARM64EC * update after review * Add vectorcall doc update for ARM64EC * update F1 help metadata (#4352) * update F1 help metadata * small fixes * fix metadata Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> * Followup for cpp-docs PR 3977 (#4355) * Edits to improve SEO and usability. (#4350) * Edits to improve SEO and usability. * Incorporate feedback. * resolving blocking issues * updating this keyword -3 (#4353) * updating this keyword-3 * update after review * resolving validation warning * update after review * fix examples * Address C4743 weirdness per 3955 (#4359) Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Victor Tong <vitong@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Hiroshi Yoshioka <40815708+hyoshioka0128@users.noreply.github.com> Co-authored-by: Casey Carter <cartec69@gmail.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> Co-authored-by: Feng Xu <fenxu@microsoft.com> Co-authored-by: Paula Miller <v-paulmi@microsoft.com> Co-authored-by: Tim Sherer <28902327+TimShererWithAquent@users.noreply.github.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: PRMerger13 <prmrgr13@microsoft.com> * removed typo in macro the asterisk was repeated incorrectly Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Victor Tong <vitong@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Hiroshi Yoshioka <40815708+hyoshioka0128@users.noreply.github.com> Co-authored-by: Casey Carter <cartec69@gmail.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> Co-authored-by: Paula Miller <v-paulmi@microsoft.com> Co-authored-by: Tim Sherer <28902327+TimShererWithAquent@users.noreply.github.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: PRMerger13 <prmrgr13@microsoft.com> Co-authored-by: Michał Kozakiewicz <michalkozakiewicz3@gmail.com> Co-authored-by: Courtney Wales <62625502+Court72@users.noreply.github.com> * Fix typo * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4368) * 6/17/2022 AM Publish (#4361) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * Arm64EC ABI * Fix bot comments * Acrolinx and style updates * update after review * Add EC function name decoration section * Remove duplicated typedef * Add decorated names updates * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo * PR feedback * updating this keyword * resolving error * Fix a typo in Decorated names * Typo "MSBUILD.exe"→"MSBuild.exe" https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170 https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/build/reference/mp-build-with-multiple-processes.md #PingMSFTDocs * Ranges (#4314) * draft * add begin() * add stubs * work * added art * days work * finish draft of namespace level functions * fix filenames * cleanup pass * minor update * stash * clean up adaptors sectin * start discussion of views and range adaptors * fix return value heading * tech review * acrolinx type fixes * Update docs/standard-library/range-functions.md Co-authored-by: Casey Carter <cartec69@gmail.com> * tech review2 * fix typo * one more typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * update after review * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4347) * 6/8/2022 AM Publish (#4339) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> * 6/9/2022 AM Publish (#4342) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 6/10/2022 AM Publish (#4345) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4348) * 6/8/2022 AM Publish (#4339) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> * 6/9/2022 AM Publish (#4342) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 6/10/2022 AM Publish (#4345) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * Typo "MSBUILD.exe"→"MSBuild.exe" https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170 https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/build/reference/mp-build-with-multiple-processes.md #PingMSFTDocs * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * 6/13/2022 AM Publish (#4346) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo * Ranges (#4314) * draft * add begin() * add stubs * work * added art * days work * finish draft of namespace level functions * fix filenames * cleanup pass * minor update * stash * clean up adaptors sectin * start discussion of views and range adaptors * fix return value heading * tech review * acrolinx type fixes * Update docs/standard-library/range-functions.md Co-authored-by: Casey Carter <cartec69@gmail.com> * tech review2 * fix typo * one more typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Casey Carter <cartec69@gmail.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Hiroshi Yoshioka <40815708+hyoshioka0128@users.noreply.github.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Consolidate manifest docs, updates for 3974, 3972, 3954 (#4343) * Consolidate manifest docs, 3972 3954 * Fix build warning * Consolidate See also sections * Add function overloading for 3974 * Fix broken anchor links for redirects * update after review * use capitalized ARM * update docs to clarify volatile flag for ARM64EC * update after review * Add vectorcall doc update for ARM64EC * update F1 help metadata (#4352) * update F1 help metadata * small fixes * fix metadata Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> * Followup for cpp-docs PR 3977 (#4355) * Edits to improve SEO and usability. (#4350) * Edits to improve SEO and usability. * Incorporate feedback. * resolving blocking issues * updating this keyword -3 (#4353) * updating this keyword-3 * update after review * resolving validation warning * update after review * fix examples * Address C4743 weirdness per 3955 (#4359) Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Victor Tong <vitong@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Hiroshi Yoshioka <40815708+hyoshioka0128@users.noreply.github.com> Co-authored-by: Casey Carter <cartec69@gmail.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> Co-authored-by: Feng Xu <fenxu@microsoft.com> Co-authored-by: Paula Miller <v-paulmi@microsoft.com> Co-authored-by: Tim Sherer <28902327+TimShererWithAquent@users.noreply.github.com> Co-authored-by: Colin Cooper <72402153+v-ccolin@users.noreply.github.com> Co-authored-by: PRMerger13 <prmrgr13@microsoft.com> * removed typo in macro the asterisk was repeated incorrectly * 6/20/2022 AM Publish (#4365) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * Arm64EC ABI * Fix bot comments * Acrolinx and style updates * update after review * Add EC function name decoration section * Remove duplicated typedef * Add decorated names updates * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo * PR feedback * updating this keyword * resolving error * Fix a typo in Decorated names * Typo "MSBUILD.exe"→"MSBuild.exe" https://docs.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes?view=msvc-170 https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/build/reference/mp-build-with-multiple-processes.md #PingMSFTDocs * Ranges (#4314) * draft * add begin() * add stubs * work * added art * days work * finish draft of namespace level functions * fix filenames * cleanup pass * minor update * stash * clean up adaptors sectin * start discussion of views and range adaptors * fix return value heading * tech review * acrolinx type fixes * Update docs/standard-library/range-functions.md Co-authored-by: Casey Carter <cartec69@gmail.com> * tech review2 * fix typo * one more typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Casey Carter <cartec69@gmail.com> * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * update after review * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4347) * 6/8/2022 AM Publish (#4339) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> * 6/9/2022 AM Publish (#4342) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * 6/10/2022 AM Publish (#4345) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> * Update cmfctoolbar-class.md Description of m_bDontScaleImages was unhelpful (like far to much of Microsoft docs that simply document "DoFoo" as "Does Foo" instead of explaining what "Foo" is and why somebody would want to do it or not.) I copied the documentation from the BCGSoft docs for this. Since much of the MFC was obtained from them, we should use their documentation more. * Update cmfctoolbar-class.md Tightened up the text a bit and added code escape for TRUE Co-authored-by: Taojunshen <v-jutao@microsoft.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Colin Robertson <3836425+corob-msft@users.noreply.github.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: rachana-satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tomohiro Endo <europeanplaice@gmail.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: Scot Brennecke <stbrennecke@hotmail.com> * Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4348) * 6/8/2022 AM Publish (#4339) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: PRMerger7 <prmrgr7@microsoft.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Colin Robertson <corob@microsoft.com> * 6/9/2022 AM Publish (#4342) * update requirements * update dates * updates * update year * removed exception detail * update version info * wording update * Link fixed. * Link fixed. * Link fixed. * Address more `this` issues found during #4327 fix (#4333) * Address more `this` issues found during #4327 fix * Fix missed code formatting * updating this keyword * Acrolinx update * update after review * Remove duplicated typedef * update after review * Update per David Lowndes issue * Also update merge modules article * fix typo Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: v-rajagt <102556060+v-rajagt@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.c…
1 parent f7dcc44 commit 10bcbf8

File tree

3 files changed

+131
-116
lines changed

3 files changed

+131
-116
lines changed
Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,57 @@
11
---
2-
description: "Learn more about: Overloading Unary Operators"
3-
title: "Overloading Unary Operators"
4-
ms.date: "11/04/2016"
2+
description: "Learn more about: Overloading unary operators"
3+
title: "Overloading unary operators"
4+
ms.date: 07/08/2022
55
helpviewer_keywords: ["unary operators [C++], plus", "increment operators [C++], overloaded", "unary operators [C++], minus", "operators [C++], unary", "redefinable unary operators [C++]", "unary operators [C++]", "pointer dereference operator overloading", "plus operator"]
66
ms.assetid: 7683ef08-42a4-4283-928f-d3dd4f3ab4c0
77
---
8-
# Overloading Unary Operators
8+
# Overloading unary operators
99

10-
The unary operators that can be overloaded are the following:
10+
Unary operators produce a result from a single operand. You can define overloads of a standard set of unary operators to work on user-defined types.
1111

12-
1. `!` ([logical NOT](../cpp/logical-negation-operator-exclpt.md))
12+
## Overloadable unary operators
1313

14-
1. `&` ([address-of](../cpp/address-of-operator-amp.md))
14+
You can overload the following unary operators on user-defined types:
1515

16-
1. `~` ([one's complement](../cpp/one-s-complement-operator-tilde.md))
16+
- **`!`** ([logical NOT](../cpp/logical-negation-operator-exclpt.md))
1717

18-
1. `*` ([pointer dereference](../cpp/indirection-operator-star.md))
18+
- **`&`** ([address-of](../cpp/address-of-operator-amp.md))
1919

20-
1. `+` ([unary plus](../cpp/additive-operators-plus-and.md))
20+
- **`~`** ([complement](../cpp/one-s-complement-operator-tilde.md))
2121

22-
1. `-` ([unary negation](../cpp/additive-operators-plus-and.md))
22+
- **`*`** ([pointer dereference](../cpp/indirection-operator-star.md))
2323

24-
1. `++` ([increment](../cpp/prefix-increment-and-decrement-operators-increment-and-decrement.md))
24+
- **`+`** ([unary plus](../cpp/unary-plus-and-negation-operators-plus-and.md))
2525

26-
1. `--` ([decrement](../cpp/prefix-increment-and-decrement-operators-increment-and-decrement.md))
26+
- **`-`** ([unary negation](../cpp/unary-plus-and-negation-operators-plus-and.md))
2727

28-
1. conversion operators
28+
- **`++`** ([prefix increment](../cpp/prefix-increment-and-decrement-operators-increment-and-decrement.md)) or ([postfix increment](../cpp/postfix-increment-and-decrement-operators-increment-and-decrement.md))
2929

30-
The postfix increment and decrement operators (`++` and `--`) are treated separately in [Increment and Decrement](../cpp/increment-and-decrement-operator-overloading-cpp.md).
30+
- **`--`** ([prefix decrement](../cpp/prefix-increment-and-decrement-operators-increment-and-decrement.md)) or ([postfix decrement](../cpp/postfix-increment-and-decrement-operators-increment-and-decrement.md))
3131

32-
Conversion operators are also discussed in a separate topic; see [User-Defined Type Conversions](../cpp/user-defined-type-conversions-cpp.md).
32+
- [Conversion operators](../cpp/user-defined-type-conversions-cpp.md)
3333

34-
The following rules are true of all other unary operators. To declare a unary operator function as a nonstatic member, you must declare it in the form:
34+
## Unary operator overload declarations
3535

36-
> *ret-type* **`operator`** *op* **()**
36+
You can declare overloaded unary operators either as non-static member functions or as nonmember functions. Overloaded unary member functions take no argument because they implicitly operate on **`this`**. Nonmember functions are declared with one argument. When both forms are declared, the compiler follows the rules for overload resolution to determine which function to use, if any.
3737

38-
where *ret-type* is the return type and *op* is one of the operators listed in the preceding table.
38+
The following rules apply to all prefix unary operators. To declare a unary operator function as a non-static member function, use this declaration form:
3939

40-
To declare a unary operator function as a global function, you must declare it in the form:
40+
> *`return-type`* **`operator`** *`op`* **`();`**
4141
42-
> *ret-type* **`operator`** *op* **(** *arg* **)**
42+
In this form, *`return-type`* is the return type and *`op`* is one of the operators listed in the preceding table.
4343

44-
where *ret-type* and *op* are as described for member operator functions and the *arg* is an argument of class type on which to operate.
44+
To declare a unary operator function as a nonmember function, use this declaration form:
45+
46+
> *`return-type`* **`operator`** *`op`* **`(`** *`class-type`* **`);`**
47+
48+
In this form, *`return-type`* is the return type, *`op`* is one of the operators listed in the preceding table, and *`class-type`* is the class type of the argument on which to operate.
49+
50+
The postfix forms of **`++`** and **`--`** take an extra **`int`** argument to distinguish them from the prefix forms. For more information about the prefix and postfix forms of **`++`** and **`--`**, see [Increment and decrement operator overloading](../cpp/increment-and-decrement-operator-overloading-cpp.md).
4551

4652
> [!NOTE]
47-
> There is no restriction on the return types of the unary operators. For example, it makes sense for logical NOT (`!`) to return an integral value, but this is not enforced.
53+
> There's no restriction on the return types of the unary operators. For example, it makes sense for logical NOT (**`!`**) to return a **`bool`** value, but this behavior isn't enforced.
4854
4955
## See also
5056

51-
[Operator Overloading](../cpp/operator-overloading.md)
57+
[Operator overloading](../cpp/operator-overloading.md)

docs/standard-library/algorithm-functions.md

Lines changed: 96 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ The source ranges aren't modified by `binary_search`.
326326

327327
The value types of the forward iterators must be less-than comparable to be ordered. That is, given two elements, you can determine either that one is less than the other, or that they're equivalent. (Here, equivalent means that neither is less than the other.) This comparison results in an ordering between the nonequivalent elements.
328328

329-
The complexity of the algorithm is logarithmic for random-access iterators and linear otherwise, with the number of steps proportional to (`last` - `first`).
329+
The complexity of the algorithm is logarithmic for random-access iterators and linear otherwise, with the number of steps proportional to (`last-first`).
330330

331331
### Example
332332

@@ -2382,7 +2382,7 @@ The function object is invoked for each element in the range and doesn't need to
23822382

23832383
The range referenced must be valid. All pointers must be dereferenceable and, within the sequence, the last position must be reachable from the first by incrementation.
23842384

2385-
The complexity is linear, with exactly `last` - `first` calls made to the generator.
2385+
The complexity is linear, with exactly `last - first` calls made to the generator.
23862386

23872387
### Example
23882388

@@ -6941,39 +6941,42 @@ The complexity is linear. It makes (`last` - `first`) comparisons for equality a
69416941

69426942
int main()
69436943
{
6944-
using namespace std;
6945-
vector<int> v1;
6946-
vector<int>::iterator Iter1;
6944+
std::vector<int> v;
69476945

6948-
int i;
6949-
for ( i = 0 ; i <= 9 ; i++ )
6950-
v1.push_back( i );
6946+
for (int i = 0; i < 10; i++)
6947+
{
6948+
v.push_back(i);
6949+
}
69516950

6952-
int ii;
6953-
for ( ii = 0 ; ii <= 3 ; ii++ )
6954-
v1.push_back( 7 );
6951+
for (int i = 0; i < 3; i++)
6952+
{
6953+
v.push_back(7);
6954+
}
69556955

6956-
random_shuffle (v1.begin( ), v1.end( ) );
6957-
cout << "The original vector v1 is:\n ( " ;
6958-
for ( Iter1 = v1.begin( ) ; Iter1 != v1.end( ) ; Iter1++ )
6959-
cout << *Iter1 << " ";
6960-
cout << ")." << endl;
6956+
std::cout << "The original vector v is:\n ( ";
6957+
for (auto iter = v.begin(); iter != v.end(); iter++)
6958+
{
6959+
std::cout << *iter << " ";
6960+
}
6961+
std::cout << ")." << std::endl;
69616962

69626963
// Replace elements with a value of 7 with a value of 700
6963-
replace (v1.begin( ), v1.end( ), 7 , 700);
6964+
replace(v.begin(), v.end(), 7, 700);
69646965

6965-
cout << "The vector v1 with a value 700 replacing that of 7 is:\n ( " ;
6966-
for ( Iter1 = v1.begin( ) ; Iter1 != v1.end( ) ; Iter1++ )
6967-
cout << *Iter1 << " ";
6968-
cout << ")." << endl;
6966+
std::cout << "The vector v with 7s replaced with 700s:\n ( ";
6967+
for (auto iter = v.begin(); iter != v.end(); iter++)
6968+
{
6969+
std::cout << *iter << " ";
6970+
}
6971+
std::cout << ")." << std::endl;
69696972
}
69706973
```
69716974

69726975
```Output
6973-
The original vector v1 is:
6974-
( 4 7 7 7 0 5 7 1 6 9 3 7 8 2 ).
6975-
The vector v1 with a value 700 replacing that of 7 is:
6976-
( 4 700 700 700 0 5 700 1 6 9 3 700 8 2 ).
6976+
The original vector v is:
6977+
( 0 1 2 3 4 5 6 7 8 9 7 7 7 ).
6978+
The vector v with 7s replaced with 700s:
6979+
( 0 1 2 3 4 5 6 700 8 9 700 700 700 ).
69776980
```
69786981

69796982
## <a name="replace_copy"></a> `replace_copy`
@@ -7031,7 +7034,7 @@ The order of the elements not replaced remains stable.
70317034

70327035
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
70337036

7034-
The complexity is linear. It makes (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
7037+
The complexity is linear. It makes (`last - first`) comparisons for equality and at most (`last - first`) assignments of new values.
70357038

70367039
### Example
70377040

@@ -7046,58 +7049,65 @@ The complexity is linear. It makes (`last` - `first`) comparisons for equality a
70467049
int main()
70477050
{
70487051
using namespace std;
7049-
vector<int> v1;
7050-
list<int> L1 (15);
7051-
vector<int>::iterator Iter1;
7052-
list<int>::iterator L_Iter1;
7053-
7054-
int i;
7055-
for ( i = 0 ; i <= 9 ; i++ )
7056-
v1.push_back( i );
7052+
vector<int> theVector;
7053+
list<int> theList(15);
70577054

7058-
int ii;
7059-
for ( ii = 0 ; ii <= 3 ; ii++ )
7060-
v1.push_back( 7 );
7055+
for (int i = 0; i <= 9; i++)
7056+
{
7057+
theVector.push_back(i);
7058+
}
70617059

7062-
random_shuffle ( v1.begin( ), v1.end( ) );
7060+
for (int i = 0; i <= 3; i++)
7061+
{
7062+
theVector.push_back(7);
7063+
}
70637064

7064-
int iii;
7065-
for ( iii = 0 ; iii <= 15 ; iii++ )
7066-
v1.push_back( 1 );
7065+
random_shuffle(theVector.begin(), theVector.end());
7066+
7067+
for (int i = 0; i <= 15; i++)
7068+
{
7069+
theVector.push_back(1);
7070+
}
70677071

7068-
cout << "The original vector v1 is:\n ( " ;
7069-
for ( Iter1 = v1.begin( ) ; Iter1 != v1.end( ) ; Iter1++ )
7070-
cout << *Iter1 << " ";
7072+
cout << "The shuffled vector:\n ( ";
7073+
for (auto iter = theVector.begin(); iter != theVector.end(); iter++)
7074+
{
7075+
cout << *iter << " ";
7076+
}
70717077
cout << ")." << endl;
70727078

7073-
// Replace elements in one part of a vector with a value of 7
7074-
// with a value of 70 and copy into another part of the vector
7075-
replace_copy ( v1.begin( ), v1.begin( ) + 14,v1.end( ) -15, 7 , 70);
7079+
// Replace the 7s in part of the vector with 70s
7080+
// and copy into another part of the vector
7081+
replace_copy(theVector.begin(), theVector.begin() + 14, theVector.end() - 15, 7, 70);
70767082

7077-
cout << "The vector v1 with a value 70 replacing that of 7 is:\n ( " ;
7078-
for ( Iter1 = v1.begin( ) ; Iter1 != v1.end( ) ; Iter1++ )
7079-
cout << *Iter1 << " ";
7083+
cout << "The vector with instances of 7 replaced with 70 starting at position 14:\n ( ";
7084+
for (auto iter = theVector.begin(); iter != theVector.end(); iter++)
7085+
{
7086+
cout << *iter << " ";
7087+
}
70807088
cout << ")." << endl;
70817089

7082-
// Replace elements in a vector with a value of 70
7083-
// with a value of 1 and copy into a list
7084-
replace_copy ( v1.begin( ), v1.begin( ) + 14,L1.begin( ), 7 , 1);
7090+
// Replace 7s found in the first 14 positions in the vector with 1s and then copy the result into a list
7091+
replace_copy(theVector.begin(), theVector.begin() + 14, theList.begin(), 7, 1);
70857092

7086-
cout << "The list copy L1 of v1 with the value 0 replacing "
7087-
<< "that of 7 is:\n ( " ;
7088-
for ( L_Iter1 = L1.begin( ) ; L_Iter1 != L1.end( ) ; L_Iter1++ )
7089-
cout << *L_Iter1 << " ";
7093+
cout << "List containing the contents of the vector but 7s replaced with 1s.\n ( ";
7094+
for (auto iter = theList.begin(); iter != theList.end(); iter++)
7095+
{
7096+
cout << *iter << " ";
7097+
}
70907098
cout << ")." << endl;
70917099
}
70927100
```
70937101

7102+
Because of the `random_shuffle()` call in the preceding code, your output may be different.
7103+
70947104
```Output
7095-
The original vector v1 is:
7096-
( 4 7 7 7 0 5 7 1 6 9 3 7 8 2 ).
7097-
The vector v1 with a value 70 replacing that of 7 is:
7098-
( 4 70 70 70 0 5 70 1 6 9 3 70 8 2 ).
7099-
The list copy L1 of v1 with the value 0 replacing that of 7 is:
7100-
( 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ).
7105+
The shuffled vector:
7106+
( 7 1 9 2 0 7 7 3 4 6 8 5 7 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ).
7107+
The vector with instances of 7 replaced with 70 starting at position 14:
7108+
( 7 1 9 2 0 7 7 3 4 6 8 5 7 7 1 70 1 9 2 0 70 70 3 4 6 8 5 70 70 1 ).
7109+
List containing the contents of the vector but 7s replaced with 1s.
7110+
( 1 1 9 2 0 1 1 3 4 6 8 5 1 1 0 ).
71017111
```
71027112

71037113
## <a name="replace_copy_if"></a> `replace_copy_if`
@@ -7293,49 +7303,48 @@ The complexity is linear. It makes (`last` - `first`) comparisons for equality a
72937303
#include <algorithm>
72947304
#include <iostream>
72957305

7296-
bool greater6 ( int value )
7306+
bool greater6(int value)
72977307
{
72987308
return value > 6;
72997309
}
73007310

73017311
int main()
73027312
{
73037313
using namespace std;
7304-
vector<int> v1;
7305-
vector<int>::iterator Iter1;
7306-
7307-
int i;
7308-
for ( i = 0 ; i <= 9 ; i++ )
7309-
v1.push_back( i );
7314+
vector<int> v;
73107315

7311-
int ii;
7312-
for ( ii = 0 ; ii <= 3 ; ii++ )
7313-
v1.push_back( 7 );
7316+
for (int i = 0; i <= 10; i++)
7317+
{
7318+
v.push_back(i);
7319+
}
73147320

7315-
random_shuffle ( v1.begin( ), v1.end( ) );
7316-
cout << "The original vector v1 is:\n ( " ;
7317-
for ( Iter1 = v1.begin( ) ; Iter1 != v1.end( ) ; Iter1++ )
7318-
cout << *Iter1 << " ";
7321+
cout << "The original vector v:\n ( ";
7322+
for (auto iter = v.begin(); iter != v.end(); iter++)
7323+
{
7324+
cout << *iter << " ";
7325+
}
73197326
cout << ")." << endl;
73207327

73217328
// Replace elements satisfying the predicate greater6
73227329
// with a value of 70
7323-
replace_if ( v1.begin( ), v1.end( ), greater6 , 70);
7330+
replace_if(v.begin(), v.end(), greater6, 70);
73247331

7325-
cout << "The vector v1 with a value 70 replacing those\n "
7326-
<< "elements satisfying the greater6 predicate is:\n ( " ;
7327-
for ( Iter1 = v1.begin( ) ; Iter1 != v1.end( ) ; Iter1++ )
7328-
cout << *Iter1 << " ";
7329-
cout << ")." << endl;
7332+
cout << "The vector v with a value 70 replacing those\n "
7333+
<< "elements satisfying the greater6 predicate is:\n ( ";
7334+
for (auto iter = v.begin(); iter != v.end(); iter++)
7335+
{
7336+
cout << *iter << " ";
7337+
}
7338+
cout << ").";
73307339
}
73317340
```
73327341

73337342
```Output
7334-
The original vector v1 is:
7335-
( 4 7 7 7 0 5 7 1 6 9 3 7 8 2 ).
7336-
The vector v1 with a value 70 replacing those
7343+
The original vector v:
7344+
( 0 1 2 3 4 5 6 7 8 9 10 ).
7345+
The vector v with a value 70 replacing those
73377346
elements satisfying the greater6 predicate is:
7338-
( 4 70 70 70 0 5 70 1 6 70 3 70 70 2 ).
7347+
( 0 1 2 3 4 5 6 70 70 70 70 ).
73397348
```
73407349

73417350
## <a name="reverse"></a> `reverse`

docs/standard-library/vector.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `vector` is a container that organizes elements of a given type in a linear
1414
> [!NOTE]
1515
> The `<vector>` library also uses the `#include <initializer_list>` statement.
1616
17-
For more information about the class `vector`, see [`vector` Class](../standard-library/vector-class.md). For information about the specialization `vector<bool>`, see [`vector\<bool>` Class](../standard-library/vector-bool-class.md).
17+
For more information about the class `vector`, see [`vector` Class](../standard-library/vector-class.md). For information about the specialization `vector<bool>`, see [`vector<bool>` class](../standard-library/vector-bool-class.md).
1818

1919
## Syntax
2020

@@ -87,9 +87,9 @@ The second (right) vector in a compare operation.
8787
8888
|Name|Description|
8989
|-|-|
90-
|[`operator! =`](../standard-library/vector-operators.md#op_neq)|Tests if the `vector` object on the left side of the operator is not equal to the `vector` object on the right side.|
90+
|[`operator! =`](../standard-library/vector-operators.md#op_neq)|Tests if the `vector` object on the left side of the operator isn't equal to the `vector` object on the right side.|
9191
|[`operator<`](../standard-library/vector-operators.md#op_lt)|Tests if the `vector` object on the left side of the operator is less than the `vector` object on the right side.|
92-
|[`operator\<=`](../standard-library/vector-operators.md#op_gt_eq)|Tests if the `vector` object on the left side of the operator is less than or equal to the `vector` object on the right side.|
92+
|[`operator<=`](../standard-library/vector-operators.md#op_gt_eq)|Tests if the `vector` object on the left side of the operator is less than or equal to the `vector` object on the right side.|
9393
|[`operator==`](../standard-library/vector-operators.md#op_eq_eq)|Tests if the `vector` object on the left side of the operator is equal to the `vector` object on the right side.|
9494
|[`operator>`](../standard-library/vector-operators.md#op_gt)|Tests if the `vector` object on the left side of the operator is greater than the `vector` object on the right side.|
9595
|[`operator>=`](../standard-library/vector-operators.md#op_gt_eq)|Tests if the `vector` object on the left side of the operator is greater than or equal to the `vector` object on the right side.|
@@ -98,14 +98,14 @@ The second (right) vector in a compare operation.
9898
9999
|Name|Description|
100100
|-|-|
101-
|[`vector Class`](../standard-library/vector-class.md)|A class template of sequence containers that arrange elements of a given type in a linear arrangement and allow fast random access to any element.|
101+
|[`vector` class](../standard-library/vector-class.md)|A class template of sequence containers that arrange elements of a given type in a linear arrangement and allow fast random access to any element.|
102102
103103
### Specializations
104104
105105
|Name|Description|
106106
|-|-|
107107
|hash|Returns a hash of the vector.|
108-
|[`vector\<bool> Class`](../standard-library/vector-bool-class.md)|A full specialization of the class template vector for elements of type **`bool`** with an allocator for the underlying type used by the specialization.|
108+
|[`vector<bool>` class](../standard-library/vector-bool-class.md)|A full specialization of the class template vector for elements of type **`bool`** with an allocator for the underlying type used by the specialization.|
109109
110110
## Requirements
111111

0 commit comments

Comments
 (0)