Functions returning handles to stderr
, stdout
, stdin
.
◆ get_stderr() [1/2]
Get a handle to the standard error.
This function returns a handle to the standard error.
- Returns
- A handle to the standard error (or an empty handle in case of failure). Ownership is not transferred to the caller. Closing the handle returned by this function leads to undefined behavior.
- Exceptions
-
asio::system_error | Thrown on failure. |
◆ get_stderr() [2/2]
Get a handle to the standard error.
This function returns a handle to the standard error.
- Parameters
-
ec | Set to indicate what error occurred. If no error occurred, the object is reset. |
- Returns
- A handle to the standard error (or an empty handle in case of failure). Ownership is not transferred to the caller. Closing the handle returned by this function leads to undefined behavior.
◆ get_stdin() [1/2]
Get a handle to the standard input.
This function returns a handle to the standard input.
- Returns
- A handle to the standard input (or an empty handle in case of failure). Ownership is not transferred to the caller. Closing the handle returned by this function leads to undefined behavior.
- Exceptions
-
asio::system_error | Thrown on failure. |
◆ get_stdin() [2/2]
Get a handle to the standard input.
This function returns a handle to the standard input.
- Parameters
-
ec | Set to indicate what error occurred. If no error occurred, the object is reset. |
- Returns
- A handle to the standard input (or an empty handle in case of failure). Ownership is not transferred to the caller. Closing the handle returned by this function leads to undefined behavior.
◆ get_stdout() [1/2]
Get a handle to the standard output.
This function returns a handle to the standard output.
- Returns
- A handle to the standard output (or an empty handle in case of failure). Ownership is not transferred to the caller. Closing the handle returned by this function leads to undefined behavior.
- Exceptions
-
asio::system_error | Thrown on failure. |
◆ get_stdout() [2/2]
Get a handle to the standard output.
This function returns a handle to the standard output.
- Parameters
-
ec | Set to indicate what error occurred. If no error occurred, the object is reset. |
- Returns
- A handle to the standard output (or an empty handle in case of failure). Ownership is not transferred to the caller. Closing the handle returned by this function leads to undefined behavior.