You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cpp/variant-t-attach.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,23 +15,22 @@ ms.workload: ["cplusplus"]
15
15
# _variant_t::Attach
16
16
**Microsoft Specific**
17
17
18
-
Attaches a `VARIANT` object into the `_variant_t` object.
18
+
Attaches a `VARIANT` object into the **_variant_t** object.
19
19
20
20
## Syntax
21
21
22
22
```
23
-
24
23
void Attach(VARIANT& varSrc);
25
24
```
26
25
27
26
#### Parameters
28
27
*varSrc*
29
-
A `VARIANT` object to be attached to this `_variant_t` object.
28
+
A `VARIANT` object to be attached to this **_variant_t** object.
30
29
31
30
## Remarks
32
-
Takes ownership of the `VARIANT` by encapsulating it. This member function releases any existing encapsulated `VARIANT`, then copies the supplied `VARIANT`, and sets its `VARTYPE` to VT_EMPTY to make sure its resources can only be released by the `_variant_t` destructor.
31
+
Takes ownership of the `VARIANT` by encapsulating it. This member function releases any existing encapsulated `VARIANT`, then copies the supplied `VARIANT`, and sets its `VARTYPE` to VT_EMPTY to make sure its resources can only be released by the **_variant_t** destructor.
Copy file name to clipboardExpand all lines: docs/cpp/variant-t-class.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,30 +15,30 @@ ms.workload: ["cplusplus"]
15
15
# _variant_t Class
16
16
**Microsoft Specific**
17
17
18
-
A `_variant_t` object encapsulates the `VARIANT` data type. The class manages resource allocation and deallocation and makes function calls to `VariantInit` and `VariantClear` as appropriate.
18
+
A **_variant_t** object encapsulates the `VARIANT` data type. The class manages resource allocation and deallocation and makes function calls to `VariantInit` and `VariantClear` as appropriate.
19
19
20
20
### Construction
21
21
22
22
|||
23
23
|-|-|
24
-
|[_variant_t](../cpp/variant-t-variant-t.md)|Constructs a `_variant_t` object.|
24
+
|[_variant_t](../cpp/variant-t-variant-t.md)|Constructs a **_variant_t** object.|
25
25
26
26
### Operations
27
27
28
28
|||
29
29
|-|-|
30
-
|[Attach](../cpp/variant-t-attach.md)|Attaches a `VARIANT` object into the `_variant_t` object.|
30
+
|[Attach](../cpp/variant-t-attach.md)|Attaches a `VARIANT` object into the **_variant_t** object.|
31
31
|[Clear](../cpp/variant-t-clear.md)|Clears the encapsulated `VARIANT` object.|
32
-
|[ChangeType](../cpp/variant-t-changetype.md)|Changes the type of the `_variant_t` object to the indicated `VARTYPE`.|
33
-
|[Detach](../cpp/variant-t-detach.md)|Detaches the encapsulated `VARIANT` object from this `_variant_t` object.|
34
-
|[SetString](../cpp/variant-t-setstring.md)|Assigns a string to this `_variant_t` object.|
32
+
|[ChangeType](../cpp/variant-t-changetype.md)|Changes the type of the **_variant_t** object to the indicated `VARTYPE`.|
33
+
|[Detach](../cpp/variant-t-detach.md)|Detaches the encapsulated `VARIANT` object from this **_variant_t** object.|
34
+
|[SetString](../cpp/variant-t-setstring.md)|Assigns a string to this **_variant_t** object.|
35
35
36
36
### Operators
37
37
38
38
|||
39
39
|-|-|
40
-
|[Operator =](../cpp/variant-t-operator-equal.md)|Assigns a new value to an existing `_variant_t` object.|
41
-
|[operator ==, !=](../cpp/variant-t-relational-operators.md)|Compare two `_variant_t` objects for equality or inequality.|
40
+
|[Operator =](../cpp/variant-t-operator-equal.md)|Assigns a new value to an existing **_variant_t** object.|
41
+
|[operator ==, !=](../cpp/variant-t-relational-operators.md)|Compare two **_variant_t** objects for equality or inequality.|
42
42
|[Extractors](../cpp/variant-t-extractors.md)|Extract data from the encapsulated `VARIANT` object.|
43
43
44
44
**END Microsoft Specific**
@@ -48,5 +48,5 @@ ms.workload: ["cplusplus"]
48
48
49
49
**Lib:** comsuppw.lib or comsuppwd.lib (see [/Zc:wchar_t (wchar_t Is Native Type)](../build/reference/zc-wchar-t-wchar-t-is-native-type.md) for more information)
50
50
51
-
## See Also
51
+
## See also
52
52
[Compiler COM Support Classes](../cpp/compiler-com-support-classes.md)
0 commit comments