## String::operator< method


Order-compares strings.

```cpp
bool System::String::operator<(const String &str) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | [String](../) to compare current one to. |

### ReturnValue

true if this is considering less than str, false otherwise.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.TeX for C++](../../../)
---
title: System::String::operator> method
linktitle: operator>
second_title: Aspose.TeX for C++
description: 'System::String::operator> method. Order-compares strings in C++.'
type: docs
weight: 3300
url: /cpp/system/string/operator_/
---
## String::operator> method


Order-compares strings.

```cpp
bool System::String::operator>(const String &str) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | [String](../) to compare current one to. |

### ReturnValue

true if this is considering more than str, false otherwise.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.TeX for C++](../../../)
