## String::operator< method


对字符串进行顺序比较。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| str | const String\& | [String](../) 用于与当前字符串比较。 |

### ReturnValue

如果此字符串小于 str 则为 true，否则为 false。

## 另见

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
---
title: System::String::operator> 方法
链接标题: operator>
次标题: Aspose.Font for C++
description: 'System::String::operator> 方法。在 C++ 中对字符串进行顺序比较。'
类型: 文档
权重: 3300
url: /cpp/system/string/operator_/
---
## String::operator> method


对字符串进行顺序比较。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| str | const String\& | [String](../) 用于与当前字符串比较。 |

### ReturnValue

如果此字符串大于 str 则为 true，否则为 false。

## 另见

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