Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qttypetraits.h File Reference

(03baf08d2bb99bf234d5e051691a57937fa935d7)

#include <QtCore/qtconfigmacros.h>
#include <QtCore/qtdeprecationmarkers.h>
#include <type_traits>
#include <utility>
+ Include dependency graph for qttypetraits.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QtPrivate::type_dependent_false< T >
 
struct  QtPrivate::value_dependent_false< T >
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 

Functions

template<typename Enum >
QT_BEGIN_NAMESPACE constexpr std::underlying_type_t< EnumqToUnderlying (Enum e) noexcept
 
template<typename T , typename U = T>
constexpr T qExchange (T &t, U &&newValue) noexcept(std::conjunction_v< std::is_nothrow_move_constructible< T >, std::is_nothrow_assignable< T &, U > >)
 

Function Documentation

◆ qExchange()

template<typename T , typename U = T>
constexpr T qExchange ( T & t,
U && newValue )
constexprnoexcept

Definition at line 45 of file qttypetraits.h.

◆ qToUnderlying()