KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
utils.h File Reference
#include <functional>
#include <type_traits>
#include <utility>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::is_placeholder< KDBindings::Private::placeholder< N > >
 
struct  KDBindings::Private::placeholder< int >
 
struct  KDBindings::Private::TypeMarker< T >
 

Namespaces

namespace  KDBindings
 The main namespace of the KDBindings library.
 
namespace  KDBindings::Private
 A namespace containing parts of KDBindings that are not part of the public API.
 
namespace  std
 

Macros

#define KDBINDINGS_DEFINE_MEMBER_GET_ARITY(MODIFIERS)
 

Functions

template<typename Func , typename... Args, typename = std::enable_if_t<std::conjunction_v<std::negation<std::is_placeholder<Args>>...>>>
auto KDBindings::Private::bind_first (Func &&fun, Args &&...args)
 
template<typename Func , typename... Args, std::size_t... Is>
auto KDBindings::Private::bind_first_helper (std::index_sequence< Is... >, Func &&fun, Args... args)
 
template<typename T >
constexpr size_t KDBindings::Private::get_arity ()
 
template<typename Return , typename Class , typename... Arguments>
constexpr size_t KDBindings::Private::get_arity (::KDBindings::Private::TypeMarker< Return(Class::*)(Arguments...)>)
 
template<typename T >
constexpr size_t KDBindings::Private::get_arity (const T &)
 
template<typename Return , typename... Arguments>
constexpr size_t KDBindings::Private::get_arity (TypeMarker< Return(*)(Arguments...) noexcept >)
 
template<typename Return , typename... Arguments>
constexpr size_t KDBindings::Private::get_arity (TypeMarker< Return(*)(Arguments...)>)
 
template<typename T >
constexpr size_t KDBindings::Private::get_arity (TypeMarker< T >)
 

Macro Definition Documentation

◆ KDBINDINGS_DEFINE_MEMBER_GET_ARITY

#define KDBINDINGS_DEFINE_MEMBER_GET_ARITY (   MODIFIERS)
Value:
template<typename Return, typename Class, typename... Arguments> \
constexpr size_t get_arity(::KDBindings::Private::TypeMarker<Return (Class::*)(Arguments...) MODIFIERS>) \
{ \
return sizeof...(Arguments) + 1; \
}

Definition at line 78 of file utils.h.


© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8