ALPSCore reference
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
alps::accumulators::has_feature< T, count_tag > Struct Template Reference

#include <count.hpp>

Collaboration diagram for alps::accumulators::has_feature< T, count_tag >:
Collaboration graph

Public Types

typedef std::integral_constant< bool, sizeof(char)==sizeof(check< T >0))> type
 

Static Public Member Functions

template<typename C >
static char helper (typename count_type< T >::type(C::*)() const)
 
template<typename C >
static char check (std::integral_constant< std::size_t, sizeof(helper(&C::count))> *)
 
template<typename C >
static double check (...)
 

Static Public Attributes

static constexpr bool value = type::value
 

Detailed Description

template<typename T>
struct alps::accumulators::has_feature< T, count_tag >

Definition at line 31 of file count.hpp.

Member Typedef Documentation

template<typename T >
typedef std::integral_constant<bool, sizeof(char) == sizeof(check<T>0))> alps::accumulators::has_feature< T, count_tag >::type

Definition at line 35 of file count.hpp.

Member Function Documentation

template<typename T >
template<typename C >
static char alps::accumulators::has_feature< T, count_tag >::check ( std::integral_constant< std::size_t, sizeof(helper(&C::count))> *  )
static
template<typename T >
template<typename C >
static double alps::accumulators::has_feature< T, count_tag >::check (   ...)
static
template<typename T >
template<typename C >
static char alps::accumulators::has_feature< T, count_tag >::helper ( typename count_type< T >::type(C::*)()  const)
static

Member Data Documentation

template<typename T >
constexpr bool alps::accumulators::has_feature< T, count_tag >::value = type::value
static

Definition at line 36 of file count.hpp.


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