TiledArray::shared_function< F > Class Template Reference

Documentation

template<typename F>
class TiledArray::shared_function< F >

analogous to std::function, but has shallow-copy semantics

Definition at line 16 of file function.h.

Public Member Functions

 shared_function ()=default
 
 shared_function (F &&f)
 
 shared_function (shared_function const &other)
 
 shared_function (shared_function &&)=default
 
shared_functionoperator= (shared_function const &)=default
 
shared_functionoperator= (shared_function &&)=default
 
 operator bool () const
 
template<typename... As, typename = std::void_t<decltype( (std::declval<F &>())(std::declval<As>()...))>>
auto operator() (As &&...as) const
 

Constructor & Destructor Documentation

◆ shared_function() [1/4]

template<typename F >
TiledArray::shared_function< F >::shared_function ( )
default

◆ shared_function() [2/4]

template<typename F >
TiledArray::shared_function< F >::shared_function ( F &&  f)
inline

Definition at line 20 of file function.h.

◆ shared_function() [3/4]

template<typename F >
TiledArray::shared_function< F >::shared_function ( shared_function< F > const &  other)
inline

Definition at line 21 of file function.h.

◆ shared_function() [4/4]

template<typename F >
TiledArray::shared_function< F >::shared_function ( shared_function< F > &&  )
default

Member Function Documentation

◆ operator bool()

template<typename F >
TiledArray::shared_function< F >::operator bool ( ) const
inlineexplicit

Definition at line 26 of file function.h.

◆ operator()()

template<typename F >
template<typename... As, typename = std::void_t<decltype( (std::declval<F &>())(std::declval<As>()...))>>
auto TiledArray::shared_function< F >::operator() ( As &&...  as) const
inline

Definition at line 30 of file function.h.

◆ operator=() [1/2]

template<typename F >
shared_function& TiledArray::shared_function< F >::operator= ( shared_function< F > &&  )
default

◆ operator=() [2/2]

template<typename F >
shared_function& TiledArray::shared_function< F >::operator= ( shared_function< F > const &  )
default

The documentation for this class was generated from the following file: