Skip to content

Commit e2cfa91

Browse files
Mark raw_name Microsoft Specific (#4631)
* Mark `raw_name` Microsoft Specific * Update type-info-class.md --------- Co-authored-by: Tyler Whitney <[email protected]>
1 parent d211f59 commit e2cfa91

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/cpp/type-info-class.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
description: "Learn more about: type_info Class"
33
title: "type_info Class"
4-
ms.date: "11/04/2016"
4+
ms.date: "07/11/2023"
55
f1_keywords: ["type_info"]
66
helpviewer_keywords: ["class type_info", "type_info class"]
7-
ms.assetid: 894ddda2-7de4-4da3-9404-d2c74e356c16
87
---
98
# type_info Class
109

@@ -38,7 +37,7 @@ There is no link between the collating order of types and inheritance relationsh
3837
3938
The `type_info::name` member function returns a `const char*` to a null-terminated string representing the human-readable name of the type. The memory pointed to is cached and should never be directly deallocated.
4039
41-
The `type_info::raw_name` member function returns a `const char*` to a null-terminated string representing the decorated name of the object type. The name is actually stored in its decorated form to save space. Consequently, this function is faster than `type_info::name` because it doesn't need to undecorate the name. The string returned by the `type_info::raw_name` function is useful in comparison operations but is not readable. If you need a human-readable string, use the `type_info::name` function instead.
40+
The `type_info::raw_name` member function is Microsoft specific. It returns a `const char*` to a null-terminated string representing the decorated name of the object type. The name is stored in its decorated form to save space. Consequently, this function is faster than `type_info::name` because it doesn't need to undecorate the name. The string returned by the `type_info::raw_name` function is useful in comparison operations but is not readable. If you need a human-readable string, use `type_info::name` instead.
4241
4342
Type information is generated for polymorphic classes only if the [/GR (Enable Run-Time Type Information)](../build/reference/gr-enable-run-time-type-information.md) compiler option is specified.
4443

0 commit comments

Comments
 (0)