Skip to content

Join code blocks that are split into lines #5439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions docs/mfc/reference/crgn-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -609,17 +609,14 @@ int GetRgnBox(LPRECT lpRect) const;
*lpRect*<br/>
Points to a `RECT` structure or `CRect` object to receive the coordinates of the bounding rectangle. The `RECT` structure has the following form:

`typedef struct tagRECT {`

`int left;`

`int top;`

`int right;`

`int bottom;`

`} RECT;`
```cpp
typedef struct tagRECT {
int left;
int top;
int right;
int bottom;
} RECT;
```

### Return Value

Expand Down
67 changes: 33 additions & 34 deletions docs/standard-library/unordered-set-operators.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
---
description: "Learn more about: <unordered_set> operators"
title: "<unordered_set> operators"
ms.date: "11/04/2016"
description: "Learn more about: <unordered_set> operators"
ms.date: 11/04/2016
f1_keywords: ["unordered_set/std::operator!=", "unordered_set/std::operator=="]
ms.assetid: 8653eea6-12f2-4dd7-aa2f-db38a71599a0
---
# `<unordered_set>` operators

## <a name="op_neq"></a> operator!=
The `<unordered_set>` header provides the following operators:

## <a name="op_neq"></a> `operator!=`

Tests whether the [unordered_set](../standard-library/unordered-set-class.md) object on the left side of the operator is not equal to the unordered_set object on the right side.
Tests whether the [`unordered_set`](unordered-set-class.md) object on the left side of the operator is not equal to the `unordered_set` object on the right side.

```cpp
bool operator!=(const unordered_set <Key, Hash, Pred, Allocator>& left, const unordered_set <Key, Hash, Pred, Allocator>& right);
```

### Parameters

*left*\
*`left`*\
An object of type `unordered_set`.

*right*\
*`right`*\
An object of type `unordered_set`.

### Return Value

**`true`** if the unordered_sets are not equal; **`false`** if they are equal.
**`true`** if the `unordered_set`s are not equal; **`false`** if they are equal.

### Remarks

The comparison between unordered_set objects is not affected by the arbitrary order in which they store their elements. Two unordered_sets are equal if they have the same number of elements and the elements in one container are a permutation of the elements in the other container. Otherwise, they are unequal.
The comparison between `unordered_set` objects is not affected by the arbitrary order in which they store their elements. Two `unordered_set`s are equal if they have the same number of elements and the elements in one container are a permutation of the elements in the other container. Otherwise, they are unequal.

### Example

Expand Down Expand Up @@ -67,37 +68,35 @@ int main()
}
```

**Output:**

`c1 != c2: true`

`c1 != c3: false`

`c2 != c3: true`
```Output
c1 != c2: true
c1 != c3: false
c2 != c3: true
```

## <a name="op_eq_eq"></a> operator==
## <a name="op_eq_eq"></a> `operator==`

Tests whether the [unordered_set](../standard-library/unordered-set-class.md) object on the left side of the operator is equal to the unordered_set object on the right side.
Tests whether the [`unordered_set`](unordered-set-class.md) object on the left side of the operator is equal to the `unordered_set` object on the right side.

```cpp
bool operator==(const unordered_set <Key, Hash, Pred, Allocator>& left, const unordered_set <Key, Hash, Pred, Allocator>& right);
```

### Parameters

*left*\
*`left`*\
An object of type `unordered_set`.

*right*\
*`right`*\
An object of type `unordered_set`.

### Return Value

**`true`** if the unordered_sets are equal; **`false`** if they are not equal.
**`true`** if the `unordered_set`s are equal; **`false`** if they are not equal.

### Remarks

The comparison between unordered_set objects is not affected by the arbitrary order in which they store their elements. Two unordered_sets are equal if they have the same number of elements and the elements in one container are a permutation of the elements in the other container. Otherwise, they are unequal.
The comparison between `unordered_set` objects is not affected by the arbitrary order in which they store their elements. Two `unordered_set`s are equal if they have the same number of elements and the elements in one container are a permutation of the elements in the other container. Otherwise, they are unequal.

### Example

Expand Down Expand Up @@ -141,29 +140,29 @@ c1 == c3: true
c2 == c3: false
```

## <a name="op_neq_unordered_multiset"></a> operator!= (multiset)
## <a name="op_neq_unordered_multiset"></a> `operator!=` (multiset)

Tests whether the [unordered_multiset](../standard-library/unordered-multiset-class.md) object on the left side of the operator is not equal to the unordered_multiset object on the right side.
Tests whether the [`unordered_multiset`](unordered-multiset-class.md) object on the left side of the operator is not equal to the `unordered_multiset` object on the right side.

```cpp
bool operator!=(const unordered_multiset <Key, Hash, Pred, Allocator>& left, const unordered_multiset <Key, Hash, Pred, Allocator>& right);
```

### Parameters

*left*\
*`left`*\
An object of type `unordered_multiset`.

*right*\
*`right`*\
An object of type `unordered_multiset`.

### Return Value

**`true`** if the unordered_multisets are not equal; **`false`** if they are equal.
**`true`** if the `unordered_multiset`s are not equal; **`false`** if they are equal.

### Remarks

The comparison between unordered_multiset objects is not affected by the arbitrary order in which they store their elements. Two unordered_multisets are equal if they have the same number of elements and the elements in one container are a permutation of the elements in the other container. Otherwise, they are unequal.
The comparison between `unordered_multiset` objects is not affected by the arbitrary order in which they store their elements. Two `unordered_multiset`s are equal if they have the same number of elements and the elements in one container are a permutation of the elements in the other container. Otherwise, they are unequal.

### Example

Expand Down Expand Up @@ -210,29 +209,29 @@ c1 != c3: false
c2 != c3: true
```

## <a name="op_eq_eq_unordered_multiset"></a> operator== (multiset)
## <a name="op_eq_eq_unordered_multiset"></a> `operator==` (multiset)

Tests whether the [unordered_multiset](../standard-library/unordered-multiset-class.md) object on the left side of the operator is equal to the unordered_multiset object on the right side.
Tests whether the [`unordered_multiset`](unordered-multiset-class.md) object on the left side of the operator is equal to the `unordered_multiset` object on the right side.

```cpp
bool operator==(const unordered_multiset <Key, Hash, Pred, Allocator>& left, const unordered_multiset <Key, Hash, Pred, Allocator>& right);
```

### Parameters

*left*\
*`left`*\
An object of type `unordered_multiset`.

*right*\
*`right`*\
An object of type `unordered_multiset`.

### Return Value

**`true`** if the unordered_multisets are equal; **`false`** if they are not equal.
**`true`** if the `unordered_multiset`s are equal; **`false`** if they are not equal.

### Remarks

The comparison between unordered_multiset objects is not affected by the arbitrary order in which they store their elements. Two unordered_multisets are equal if they have the same number of elements and the elements in one container are a permutation of the elements in the other container. Otherwise, they are unequal.
The comparison between `unordered_multiset` objects is not affected by the arbitrary order in which they store their elements. Two `unordered_multiset`s are equal if they have the same number of elements and the elements in one container are a permutation of the elements in the other container. Otherwise, they are unequal.

### Example

Expand Down