## Guid::CompareTo method


Performs arithmetic comparison of the GUIDs represented by the current and specified objects.

```cpp
int System::Guid::CompareTo(const Guid &g) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| g | const Guid\& | The comparand |

### ReturnValue

-1 if the GUID represented by the current object is less than the GUID represented by **g**; 0 if the GUIDs are equal; 1 if the GUID represented by the current object is greater than the GUID represented by **g**

## See Also

* Class [Guid](../)
* Class [Guid](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
