Skip to content

Commit db414a1

Browse files
author
Michael Blome
committed
misc syntax fixes STL plus added cpp to example blocks in 207 files
1 parent 2ecd4f0 commit db414a1

File tree

218 files changed

+13304
-13536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+13304
-13536
lines changed

docs/mfc/reference/callback-function-for-cdc-enumobjects.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ The *ObjectFunc* name is a placeholder for the application-supplied function nam
4141
## Syntax
4242

4343
```
44-
45-
int CALLBACK EXPORT ObjectFunc(
44+
int CALLBACK EXPORT ObjectFunc(
4645
LPSTR lpszLogObject,
4746
LPSTR* lpData);
4847
```

docs/mfc/reference/callback-function-for-cdc-graystring.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ translation.priority.ht:
4141
## Syntax
4242

4343
```
44-
45-
BOOL CALLBACK EXPORT OutputFunc(
44+
BOOL CALLBACK EXPORT OutputFunc(
4645
HDC hDC,
4746
LPARAM lpData,
4847
int nCount);

docs/mfc/reference/callback-function-for-cdc-setabortproc.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ The name *AbortFunc* is a placeholder for the application-supplied function name
4141
## Syntax
4242

4343
```
44-
45-
BOOL CALLBACK EXPORT AbortFunc(
44+
BOOL CALLBACK EXPORT AbortFunc(
4645
HDC hPr,
4746
int code);
4847
```

docs/standard-library/add-const-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct add_const;
6060

6161
## Example
6262

63-
```
63+
```cpp
6464
// std_tr1__type_traits__add_const.cpp
6565
// compile with: /EHsc
6666
#include <type_traits>

docs/standard-library/add-cv-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ template <class T>using add_cv_t = typename add_cv<T>::type;
6262

6363
## Example
6464

65-
```
65+
```cpp
6666
#include <type_traits>
6767
#include <iostream>
6868

docs/standard-library/add-lvalue-reference-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ using add_lvalue_reference_t = typename add_lvalue_reference<T>::type;
6060

6161
## Example
6262

63-
```
63+
```cpp
6464
#include <type_traits>
6565
#include <iostream>
6666

docs/standard-library/add-volatile-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ template <class T>using add_volatile_t = typename add_volatile<T>::type;
6262

6363
## Example
6464

65-
```
65+
```cpp
6666
#include <type_traits>
6767
#include <iostream>
6868

docs/standard-library/aligned-storage-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ using aligned_storage_t = typename aligned_storage<Len, Align>::type;
6666

6767
## Example
6868

69-
```
69+
```cpp
7070
#include <type_traits>
7171
#include <iostream>
7272

docs/standard-library/allocator-class.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const_pointer address(const_reference val) const;
137137

138138
### Example
139139

140-
```
140+
```cpp
141141
// allocator_address.cpp
142142
// compile with: /EHsc
143143
#include <memory>
@@ -203,7 +203,7 @@ pointer allocate(
203203

204204
### Example
205205

206-
```
206+
```cpp
207207
// allocator_allocate.cpp
208208
// compile with: /EHsc
209209
#include <memory>
@@ -261,7 +261,7 @@ allocator(const allocator<Other>& right);
261261

262262
### Example
263263

264-
```
264+
```cpp
265265
// allocator_allocator.cpp
266266
// compile with: /EHsc
267267
#include <memory>
@@ -334,7 +334,7 @@ typedef const value_type *const_pointer;
334334

335335
### Example
336336

337-
```
337+
```cpp
338338
// allocator_const_ptr.cpp
339339
// compile with: /EHsc
340340
#include <memory>
@@ -387,7 +387,7 @@ typedef const value_type& const_reference;
387387

388388
### Example
389389

390-
```
390+
```cpp
391391
// allocator_const_ref.cpp
392392
// compile with: /EHsc
393393
#include <memory>
@@ -463,7 +463,7 @@ void construct(pointer ptr, _Other&&... val);
463463

464464
### Example
465465

466-
```
466+
```cpp
467467
// allocator_construct.cpp
468468
// compile with: /EHsc
469469
#include <memory>
@@ -546,7 +546,7 @@ void destroy(pointer ptr);
546546

547547
### Example
548548

549-
```
549+
```cpp
550550
// allocator_destroy.cpp
551551
// compile with: /EHsc
552552
#include <memory>
@@ -605,7 +605,7 @@ typedef ptrdiff_t difference_type;
605605

606606
### Example
607607

608-
```
608+
```cpp
609609
// allocator_diff_type.cpp
610610
// compile with: /EHsc
611611
#include <memory>
@@ -664,7 +664,7 @@ size_type max_size() const;
664664

665665
### Example
666666

667-
```
667+
```cpp
668668
// allocator_max_size.cpp
669669
// compile with: /EHsc
670670
#include <memory>
@@ -739,7 +739,7 @@ allocator<Type>& operator=(const allocator<Other>& right);
739739
740740
### Example
741741
742-
```
742+
```cpp
743743
// allocator_op_assign.cpp
744744
// compile with: /EHsc
745745
#include <memory>
@@ -790,7 +790,7 @@ typedef value_type *pointer;
790790

791791
### Example
792792

793-
```
793+
```cpp
794794
// allocator_ptr.cpp
795795
// compile with: /EHsc
796796
#include <memory>
@@ -833,9 +833,9 @@ The integer addressed by v1Ptr has a value of: *v1Ptr = 12.
833833

834834
## <a name="allocator__rebind"></a> allocator::rebind
835835
A structure that enables an allocator for objects of one type to allocate storage for objects of another type.
836-
837-
struct rebind { typedef allocator\<_Other> other ; };
838-
836+
```
837+
struct rebind { typedef allocator<_Other> other ; };
838+
```
839839
### Parameters
840840
*other*
841841
The type of element for which memory is being allocated.
@@ -859,7 +859,7 @@ A::rebind<Other>::other::pointer
859859

860860
### Example
861861

862-
```
862+
```cpp
863863
// allocator_rebind.cpp
864864
// compile with: /EHsc
865865
#include <memory>
@@ -894,7 +894,7 @@ typedef value_type& reference;
894894
895895
### Example
896896
897-
```
897+
```cpp
898898
// allocator_reference.cpp
899899
// compile with: /EHsc
900900
#include <memory>
@@ -949,7 +949,7 @@ typedef size_t size_type;
949949

950950
### Example
951951

952-
```
952+
```cpp
953953
// allocator_size_type.cpp
954954
// compile with: /EHsc
955955
#include <memory>
@@ -996,7 +996,7 @@ typedef Type value_type;
996996
997997
### Example
998998
999-
```
999+
```cpp
10001000
// allocator_value_type.cpp
10011001
// compile with: /EHsc
10021002
#include <memory>

0 commit comments

Comments
 (0)