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

Go to the source code of this file.

Classes

struct  QtPrivate::detail::StorageByValue< Object, typename >
 
struct  QtPrivate::detail::StorageEmptyBaseClassOptimization< Object, Tag >
 

Namespaces

namespace  QtPrivate
 \macro QT_NAMESPACE
 
namespace  QtPrivate::detail
 

Macros

#define QFUNCTIONALTOOLS_IMPL_H
 
#define FOR_EACH_CVREF(op)
 
#define MAKE_GETTER(cvref)
 
#define MAKE_GETTER(cvref)
 

Typedefs

template<typename Object , typename Tag = void>
using QtPrivate::CompactStorage = typename std::conditional_t< std::conjunction_v< std::is_empty< Object >, std::negation< std::is_final< Object > > >, detail::StorageEmptyBaseClassOptimization< Object, Tag >, detail::StorageByValue< Object, Tag > >
 

Macro Definition Documentation

◆ FOR_EACH_CVREF

#define FOR_EACH_CVREF (   op)
Value:
op(&) \
op(const &) \
op(&&) \
op(const &&) \
/* end */

Definition at line 23 of file qfunctionaltools_impl.h.

◆ MAKE_GETTER [1/2]

#define MAKE_GETTER (   cvref)
Value:
constexpr Object cvref object() cvref noexcept \
{ return static_cast<Object cvref>(o); }
Definition main.cpp:8
GLuint object
[3]

Definition at line 35 of file qfunctionaltools_impl.h.

◆ MAKE_GETTER [2/2]

#define MAKE_GETTER (   cvref)
Value:
constexpr Object cvref object() cvref noexcept \
{ return static_cast<Object cvref>(*this); }

Definition at line 35 of file qfunctionaltools_impl.h.

◆ QFUNCTIONALTOOLS_IMPL_H

#define QFUNCTIONALTOOLS_IMPL_H

Definition at line 10 of file qfunctionaltools_impl.h.