## System::operator<<(std::ostream\&, const String\&) method


Outputs a string to the output stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &os, const String &str)
```


| Parameter | Type | Description |
| --- | --- | --- |
| os | std::ostream\& | An output stream object (instantiation of **basic_ostream** with **char**). |
| str | const String\& | A string to be sent to the output stream. |

### ReturnValue

An output stream to which the string was added.

## See Also

* Class [String](../string/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const Decimal\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, const Decimal &decimal)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| decimal | const Decimal\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Decimal](../decimal/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const Exception\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, const Exception &exception)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| exception | const Exception\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Typedef [Exception](../exception/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const Guid\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, const Guid &guid)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| guid | const Guid\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Guid](../guid/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const Nullable\<T\>\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
template<typename T> std::ostream & System::operator<<(std::ostream &stream, const Nullable<T> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| value | const Nullable\<T\>\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Nullable](../nullable/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const OperatingSystem\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, const OperatingSystem &os)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| os | const OperatingSystem\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [OperatingSystem](../operatingsystem/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const SharedPtr\<T\>\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
template<typename T> std::ostream & System::operator<<(std::ostream &stream, const SharedPtr<T> &object_ptr)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| object_ptr | const SharedPtr\<T\>\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Typedef [SharedPtr](../sharedptr/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const System::Object\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, const System::Object &object)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| object | const System::Object\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Object](../object/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const TypeInfo\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, const TypeInfo &type_info)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| type_info | const TypeInfo\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [TypeInfo](../typeinfo/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const Version\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, const Version &version)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| version | const Version\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Version](../version/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, const WeakPtr\<T\>\&) method


Insert data into the stream using UTF-8 encoding.

```cpp
template<typename T> std::ostream & System::operator<<(std::ostream &stream, const WeakPtr<T> &object_ptr)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| object_ptr | const WeakPtr\<T\>\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [WeakPtr](../weakptr/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, DateTime) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, DateTime date_time)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| date_time | DateTime | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [DateTime](../datetime/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, DateTimeOffset) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, DateTimeOffset value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| value | DateTimeOffset | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [DateTimeOffset](../datetimeoffset/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::ostream\&, TimeSpan) method


Insert data into the stream using UTF-8 encoding.

```cpp
std::ostream & System::operator<<(std::ostream &stream, TimeSpan time_span)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::ostream\& | Output stream to insert data to. |
| time_span | TimeSpan | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [TimeSpan](../timespan/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const String\&) method


Outputs a string to the output stream.

```cpp
std::wostream & System::operator<<(std::wostream &os, const String &str)
```


| Parameter | Type | Description |
| --- | --- | --- |
| os | std::wostream\& | An output stream object (instantiation of **basic_ostream** with **wchar_t**). |
| str | const String\& | A string to be sent to the output stream. |

### ReturnValue

An output stream to which the string was added.

## See Also

* Class [String](../string/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const Decimal\&) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, const Decimal &decimal)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| decimal | const Decimal\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Decimal](../decimal/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const Exception\&) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, const Exception &exception)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| exception | const Exception\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Typedef [Exception](../exception/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const Guid\&) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, const Guid &guid)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| guid | const Guid\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Guid](../guid/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const Nullable\<T\>\&) method


Insert data into the stream.

```cpp
template<typename T> std::wostream & System::operator<<(std::wostream &stream, const Nullable<T> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| value | const Nullable\<T\>\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Nullable](../nullable/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const OperatingSystem\&) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, const OperatingSystem &os)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| os | const OperatingSystem\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [OperatingSystem](../operatingsystem/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const SharedPtr\<T\>\&) method


Insert data into the stream.

```cpp
template<typename T> std::wostream & System::operator<<(std::wostream &stream, const SharedPtr<T> &object_ptr)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| object_ptr | const SharedPtr\<T\>\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Typedef [SharedPtr](../sharedptr/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const System::Object\&) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, const System::Object &object)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| object | const System::Object\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Object](../object/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const TypeInfo\&) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, const TypeInfo &type_info)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| type_info | const TypeInfo\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [TypeInfo](../typeinfo/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const Version\&) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, const Version &version)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| version | const Version\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [Version](../version/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, const WeakPtr\<T\>\&) method


Insert data into the stream.

```cpp
template<typename T> std::wostream & System::operator<<(std::wostream &stream, const WeakPtr<T> &object_ptr)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| object_ptr | const WeakPtr\<T\>\& | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [WeakPtr](../weakptr/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, DateTime) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, DateTime date_time)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| date_time | DateTime | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [DateTime](../datetime/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, DateTimeOffset) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, DateTimeOffset value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| value | DateTimeOffset | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [DateTimeOffset](../datetimeoffset/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator<<(std::wostream\&, TimeSpan) method


Insert data into the stream.

```cpp
std::wostream & System::operator<<(std::wostream &stream, TimeSpan time_span)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | std::wostream\& | Output stream to insert data to. |
| time_span | TimeSpan | [Data](../../system.data/) to insert. |

### ReturnValue

**stream**.

## See Also

* Class [TimeSpan](../timespan/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
---
title: System::operator>> method
linktitle: operator>>
second_title: Aspose.PDF for C++ API Reference
description: 'System::operator>> method. Gets a string from the input streamusing UTF-8 encoding in C++.'
type: docs
weight: 36300
url: /cpp/system/operator__/
---
## System::operator>>(std::istream\&, String\&) method


Gets a string from the input streamusing UTF-8 encoding.

```cpp
std::istream & System::operator>>(std::istream &in, String &str)
```


| Parameter | Type | Description |
| --- | --- | --- |
| in | std::istream\& | An input stream object (instantiation of **basic_ostream** with **char**). |
| str | String\& | A string to read from the input stream. |

### ReturnValue

An input stream from which the string was extracted.

## See Also

* Class [String](../string/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
## System::operator>>(std::wistream\&, String\&) method


Gets a string from the input stream.

```cpp
std::wistream & System::operator>>(std::wistream &in, String &str)
```


| Parameter | Type | Description |
| --- | --- | --- |
| in | std::wistream\& | An input stream object (instantiation of **basic_ostream** with **wchar_t**). |
| str | String\& | A string to read from the input stream. |

### ReturnValue

An input stream from which the string was extracted.

## See Also

* Class [String](../string/)
* Namespace [System](../)
* Library [Aspose.PDF for C++](../../)
