The C++ framework for developing highly scalable, high performance servers on Windows platforms.

EnableIf.h File Reference


Classes

struct  jb_enable_if
struct  jb_enable_if< false, T >

Defines

#define JETBYTE_HAS_MEMBER_FUNCTION(func, name)


Define Documentation

#define JETBYTE_HAS_MEMBER_FUNCTION ( func,
name   ) 

Value:

template<typename T1, typename Sign>                                         \
    struct name {                                                                \
        typedef char yes[1];                                                     \
        typedef char no [2];                                                     \
        template <typename U, U> struct type_check;                              \
        template <typename _1> static yes &chk(type_check<Sign, &_1::func > *);  \
        template <typename   > static no  &chk(...);                             \
        static bool const value = sizeof(chk<T1>(0)) == sizeof(yes);             \
    }


Generated on Sun Sep 12 19:06:42 2021 for The Server Framework - v7.4 by doxygen 1.5.3