Skip to content

Commit 4ac7b19

Browse files
Merge pull request #4752 from Rageking8/add-missing-code-blocks
Add missing code blocks
2 parents 028b26a + 9cc426d commit 4ac7b19

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

docs/standard-library/hash-compare-class.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ The class template describes an object that can be used by any of the hash assoc
1212

1313
## Syntax
1414

15+
```cpp
1516
class hash_compare
16-
{
17+
{
1718
Traits comp;
1819
public:
1920
const size_t bucket_size = 4;
@@ -24,7 +25,8 @@ class hash_compare
2425
bool operator()(
2526
const Key& key1,
2627
const Key& key2) const;
27-
};
28+
};
29+
```
2830
2931
## Remarks
3032

docs/standard-library/input-iterator-tag-struct.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ A class that provides a return type for `iterator_category` function that repres
1212

1313
## Syntax
1414

15+
```cpp
1516
struct input_iterator_tag {};
17+
```
1618
1719
## Remarks
1820

docs/standard-library/is-placeholder-class.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ Tests if type is a placeholder.
1212

1313
## Syntax
1414

15+
```cpp
1516
struct is_placeholder {
1617
static const int value;
1718
};
19+
```
1820
1921
## Remarks
2022

docs/standard-library/once-flag-structure.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ Represents a **`struct`** that is used with the template function [call_once](..
1111

1212
## Syntax
1313

14+
```cpp
1415
struct once_flag
15-
{
16+
{
1617
constexpr once_flag() noexcept;
17-
};
18+
};
19+
```
1820

1921
## Remarks
2022

docs/standard-library/output-iterator-tag-struct.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ A class that provides a return type for `iterator_category` function that repres
1212

1313
## Syntax
1414

15+
```cpp
1516
struct output_iterator_tag {};
17+
```
1618
1719
## Remarks
1820

0 commit comments

Comments
 (0)