#include <QtCore/qtconfigmacros.h>
#include <QtCore/qtdeprecationmarkers.h>
#include <type_traits>
#include <utility>
Go to the source code of this file.
|
template<typename Enum > |
constexpr std::underlying_type_t< Enum > | qToUnderlying (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 > >) |
|
◆ QT_SUPPORTS_IS_CONSTANT_EVALUATED
#define QT_SUPPORTS_IS_CONSTANT_EVALUATED |
◆ qExchange()
template<typename T , typename U = T>
constexpr T qExchange |
( |
T & |
t, |
|
|
U && |
newValue |
|
) |
| |
|
constexprnoexcept |
◆ qToUnderlying()
template<typename Enum >
constexpr std::underlying_type_t< Enum > qToUnderlying |
( |
Enum |
e | ) |
|
|
constexprnoexcept |