---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/sharedstringrepository
---

# SharedStringRepository

## Overview

`SharedStringRepository` is a class in Aspose.Cells FOSS for C++.

Represents shared string repository.

This class declares 5 methods for SharedStringRepository objects in C++ programs.
Available methods include: `Clear`, `GetValues`, `Intern`, `SharedStringRepository`, `TryGetValue`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `SharedStringRepository()` | Initializes a new instance of the SharedStringRepository class. |
| `GetValues()` → `std::vector<std::string>` | Gets the values. |
| `Clear()` | Clears the current state. |
| `TryGetValue(index: int, value: std::string)` → `bool` | Attempts to get value. The zero-based index. The value. true if the operation succeeds; otherwise, false. |
| `Intern(value: std::string_view)` → `int` | Performs intern. The value. The zero-based index of the interned string. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)