GA::kit v0.3
G&A's in-house C++ application framework
Loading...
Searching...
No Matches
sigslot::trait Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  typelist
 represent a list of types More...
 

Functions

template<typename T >
std::weak_ptr< T > to_weak (std::weak_ptr< T > w)
 
template<typename T >
std::weak_ptr< T > to_weak (std::shared_ptr< T > s)
 

Variables

template<typename P >
constexpr bool is_weak_ptr_compatible_v = detail::is_weak_ptr_compatible<std::decay_t<P>>::value
 determine if a pointer is convertible into a "weak" pointer
 
template<typename L , typename... T>
constexpr bool is_callable_v = detail::is_callable<T..., L>::value
 determine if a type T (Callable or Pmf) is callable with supplied arguments
 
template<typename T >
constexpr bool is_weak_ptr_v = detail::is_weak_ptr<T>::value
 
template<typename T >
constexpr bool has_call_operator_v = detail::has_call_operator<T>::value
 
template<typename T >
constexpr bool is_pointer_v = std::is_pointer<T>::value
 
template<typename T >
constexpr bool is_func_v = std::is_function<T>::value
 
template<typename T >
constexpr bool is_pmf_v = std::is_member_function_pointer<T>::value
 
template<typename T >
constexpr bool is_observer_v
 

Function Documentation

◆ to_weak() [1/2]

template<typename T >
std::weak_ptr< T > sigslot::trait::to_weak ( std::shared_ptr< T >  s)

◆ to_weak() [2/2]

template<typename T >
std::weak_ptr< T > sigslot::trait::to_weak ( std::weak_ptr< T >  w)

Pointers that can be converted to a weak pointer concept for tracking purpose must implement the to_weak() function in order to make use of ADL to convert that type and make it usable

Variable Documentation

◆ has_call_operator_v

template<typename T >
constexpr bool sigslot::trait::has_call_operator_v = detail::has_call_operator<T>::value
constexpr

◆ is_callable_v

template<typename L , typename... T>
constexpr bool sigslot::trait::is_callable_v = detail::is_callable<T..., L>::value
constexpr

determine if a type T (Callable or Pmf) is callable with supplied arguments

◆ is_func_v

template<typename T >
constexpr bool sigslot::trait::is_func_v = std::is_function<T>::value
constexpr

◆ is_observer_v

template<typename T >
constexpr bool sigslot::trait::is_observer_v
constexpr
Initial value:
std::remove_pointer_t<T>>::value
Definition: sigslot.hpp:50

◆ is_pmf_v

template<typename T >
constexpr bool sigslot::trait::is_pmf_v = std::is_member_function_pointer<T>::value
constexpr

◆ is_pointer_v

template<typename T >
constexpr bool sigslot::trait::is_pointer_v = std::is_pointer<T>::value
constexpr

◆ is_weak_ptr_compatible_v

template<typename P >
constexpr bool sigslot::trait::is_weak_ptr_compatible_v = detail::is_weak_ptr_compatible<std::decay_t<P>>::value
constexpr

determine if a pointer is convertible into a "weak" pointer

◆ is_weak_ptr_v

template<typename T >
constexpr bool sigslot::trait::is_weak_ptr_v = detail::is_weak_ptr<T>::value
constexpr