Skip to content

Commit 1f7ac0c

Browse files
authored
Merge pull request #5540 from MicrosoftDocs/main
4/10/2024 AM Publish
2 parents 48093af + ebcccba commit 1f7ac0c

File tree

5 files changed

+127
-134
lines changed

5 files changed

+127
-134
lines changed

docs/atl-mfc-shared/reference/csimplestringt-class.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: "Learn more about: CSimpleStringT Class"
32
title: "CSimpleStringT Class"
3+
description: "Learn more about: CSimpleStringT class"
44
ms.date: 01/26/2024
55
f1_keywords: ["CSimpleStringT", "ATLSIMPSTR/ATL::CSimpleStringT", "ATLSIMPSTR/ATL::CSimpleStringT::PCXSTR", "ATLSIMPSTR/ATL::CSimpleStringT::PXSTR", "ATLSIMPSTR/ATL::CSimpleStringT::CSimpleStringT", "ATLSIMPSTR/ATL::CSimpleStringT::Append", "ATLSIMPSTR/ATL::CSimpleStringT::AppendChar", "ATLSIMPSTR/ATL::CSimpleStringT::CopyChars", "ATLSIMPSTR/ATL::CSimpleStringT::CopyCharsOverlapped", "ATLSIMPSTR/ATL::CSimpleStringT::Empty", "ATLSIMPSTR/ATL::CSimpleStringT::FreeExtra", "ATLSIMPSTR/ATL::CSimpleStringT::GetAllocLength", "ATLSIMPSTR/ATL::CSimpleStringT::GetAt", "ATLSIMPSTR/ATL::CSimpleStringT::GetBuffer", "ATLSIMPSTR/ATL::CSimpleStringT::GetBufferSetLength", "ATLSIMPSTR/ATL::CSimpleStringT::GetLength", "ATLSIMPSTR/ATL::CSimpleStringT::GetManager", "ATLSIMPSTR/ATL::CSimpleStringT::GetString", "ATLSIMPSTR/ATL::CSimpleStringT::IsEmpty", "ATLSIMPSTR/ATL::CSimpleStringT::LockBuffer", "ATLSIMPSTR/ATL::CSimpleStringT::Preallocate", "ATLSIMPSTR/ATL::CSimpleStringT::ReleaseBuffer", "ATLSIMPSTR/ATL::CSimpleStringT::ReleaseBufferSetLength", "ATLSIMPSTR/ATL::CSimpleStringT::SetAt", "ATLSIMPSTR/ATL::CSimpleStringT::SetManager", "ATLSIMPSTR/ATL::CSimpleStringT::SetString", "ATLSIMPSTR/ATL::CSimpleStringT::StringLength", "ATLSIMPSTR/ATL::CSimpleStringT::Truncate", "ATLSIMPSTR/ATL::CSimpleStringT::UnlockBuffer"]
66
helpviewer_keywords: ["shared classes, CSimpleStringT", "strings [C++], ATL class", "CSimpleStringT class"]
@@ -18,7 +18,7 @@ class CSimpleStringT
1818
1919
### Parameters
2020
21-
*`BaseType`*<br/>
21+
*`BaseType`*\
2222
The character type of the string class. Can be one of the following:
2323
2424
- **`char`** (for ANSI character strings).
@@ -1165,7 +1165,7 @@ CSimpleString str(_T("abcdefghi"), pMgr);
11651165
_tprintf_s(_T("String length: %d / Allocated length: %d\n"), str.GetLength(), str.GetAllocLength());
11661166
_tprintf_s(_T("Contents: %s\n"), (LPCTSTR)str);
11671167
str.Truncate(4);
1168-
_tprintf_s(_T("String length: %d / Allocated length: %d\n"), str.GetLength(), , str.GetAllocLength());
1168+
_tprintf_s(_T("String length: %d / Allocated length: %d\n"), str.GetLength(), str.GetAllocLength());
11691169
_tprintf_s(_T("Contents: %s\n"), (LPCTSTR)str);
11701170
```
11711171
@@ -1210,5 +1210,5 @@ Call this method to destroy the `CSimpleStringT` object.
12101210

12111211
## See also
12121212

1213-
[Hierarchy Chart](../../mfc/hierarchy-chart.md)<br/>
1213+
[Hierarchy Chart](../../mfc/hierarchy-chart.md)\
12141214
[ATL/MFC Shared Classes](../../atl-mfc-shared/atl-mfc-shared-classes.md)

docs/build/reference/std-specify-language-standard-version.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "/std (Specify Language Standard Version)"
33
description: "The MSVC compiler option /std specifies the C or C++ language standard supported by the compiler."
4-
ms.date: 4/5/2023
4+
ms.date: 4/9/2023
55
f1_keywords: ["/std", "-std", "/std:c++14", "/std:c++17", "/std:c++20", "/std:c11", "/std:c17", "/std:clatest", "VC.Project.VCCLCompilerTool.CppLanguageStandard"]
66
---
77
# `/std` (Specify Language Standard Version)
@@ -29,13 +29,7 @@ The Microsoft C++ compiler in Visual Studio 2017 and later versions doesn't supp
2929
The **`/std`** option in effect during a C++ compilation can be detected by use of the [`_MSVC_LANG`](../../preprocessor/predefined-macros.md) preprocessor macro. For more information, see [Preprocessor Macros](../../preprocessor/predefined-macros.md).
3030

3131
> [!IMPORTANT]
32-
> Because some existing code depends on the value of the macro `__cplusplus` being 199711L, the MSVC compiler doesn't change the value of this macro unless you explicitly opt in by setting [`/Zc:__cplusplus`](zc-cplusplus.md). Here are the values for `__cplusplus` depending on the language version you are compiling with:
33-
>
34-
> | Language version | __cplusplus value |
35-
> |------------------|-------------------|
36-
> | `/std:c++14` | 201402 |
37-
> | `/std:c++17` | 201703 |
38-
> | `/std:c++20` | 202002 |
32+
> Because some existing code depends on the value of the macro `__cplusplus` being `199711L`, the MSVC compiler doesn't change the value of this macro unless you explicitly opt in by setting [`/Zc:__cplusplus`](zc-cplusplus.md). Specify `/Zc:__cplusplus` and the **`/std`** option to set `__cplusplus` to the appropriate value.
3933
4034
**`/std:c++14`**\
4135
The **`/std:c++14`** option enables C++14 standard-specific features implemented by the MSVC compiler. This option is the default for code compiled as C++. It's available starting in Visual Studio 2015 Update 3.

0 commit comments

Comments
 (0)