#include <type_traits>
#include <optional>
#include <version>
#include <QDebug>
Go to the source code of this file.
|
| template<typename T > |
| QDebug | operator<< (QDebug dbg, const std::optional< T > &t) |
| |
◆ operator<<()
template<typename T >
| QDebug operator<< |
( |
QDebug | dbg, |
|
|
const std::optional< T > & | t ) |
Definition at line 42 of file KisCppQuirks.h.
43{
44
45 if (t) {
46 dbg.nospace() << "std::optional(" << *t << ")";
47 } else {
48 dbg.nospace() << "std::optional(nullopt)";
49 }
50
51 return dbg.space();
52}