Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qt_catch_conversions.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#pragma once
5
7
8#include <ostream>
9
10#include <QChar>
11#include <QString>
12
13inline std::ostream& operator<<(std::ostream& os, const QChar& character) {
14 return os << QString{character}.toStdString();
15}
16
17inline std::ostream& operator<<(std::ostream& os, const QString& string) {
18 return os << string.toStdString();
19}
QDataStream & operator<<(QDataStream &out, const MyClass &myObj)
[4]