Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
q23utility.h File Reference
#include <QtCore/qtconfigmacros.h>
#include <utility>
+ Include dependency graph for q23utility.h:

Go to the source code of this file.

Namespaces

namespace  q23
 
namespace  q23::_detail
 

Typedefs

template<typename A , typename B >
using q23::_detail::copy_const_t = std::conditional_t< std::is_const_v< A >, const B, B >
 
template<typename A , typename B >
using q23::_detail::override_ref_t = std::conditional_t< std::is_rvalue_reference_v< A >, std::remove_reference_t< B > &&, B & >
 
template<typename T , typename U >
using q23::_detail::forward_like_ret_t = override_ref_t< T &&, copy_const_t< std::remove_reference_t< T >, std::remove_reference_t< U > > >
 

Functions

template<class T , class U >
constexpr auto q23::forward_like (U &&x) noexcept -> _detail::forward_like_ret_t< T, U >