## String::operator< method


对字符串进行顺序比较。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| str | const String\& | [String](../) 用于将当前字符串与之比较。 |

### ReturnValue

如果此对象小于 str 则为 true，否则为 false。

## 另见

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
---
title: System::String::operator> 方法
链接标题: operator>
second_title: Aspose.Page for C++
description: 'System::String::operator> 方法。对字符串进行顺序比较（C++）。'
type: docs
weight: 3300
url: /cpp/system/string/operator_/
---
## String::operator> method


对字符串进行顺序比较。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| str | const String\& | [String](../) 用于将当前字符串与之比较。 |

### ReturnValue

如果此对象大于 str 则为 true，否则为 false。

## 另见

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