---
title: "System::Text::Json::Serialization::Metadata::JsonTypeInfo::SetTemplateWeakPtr method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json.serialization.metadata/jsontypeinfo/settemplateweakptr/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Text::Json::Serialization::Metadata::JsonTypeInfo::SetTemplateWeakPtr method. Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode in C++."
---

## JsonTypeInfo::SetTemplateWeakPtr method


Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.

```cpp
void System::Text::Json::Serialization::Metadata::JsonTypeInfo<T>::SetTemplateWeakPtr(uint32_t argument) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| argument | uint32_t | [Index](../../../system/index/) of template argument to treat as weak poiner. |

## See Also

* Class [JsonTypeInfo](../)
* Namespace [System::Text::Json::Serialization::Metadata](../../)
* Library [Aspose.PDF for C++](../../../)
