Quick Links:

bal | bbl | bdl | bsl

Classes | Public Types | Static Public Member Functions

bsls::ProtocolTest_IsAbstract< T > Struct Template Reference

#include <bsls_protocoltest.h>

List of all members.

Classes

struct  NoType

Public Types

enum  { VALUE = sizeof(test<T>(0)) == sizeof(YesType) }
typedef char YesType

Static Public Member Functions

template<class U >
static NoType test (U(*)[1])
template<class U >
static YesType test (...)

Detailed Description

template<class T>
struct bsls::ProtocolTest_IsAbstract< T >

This component-private, meta-function struct template provides a compile-time constant VALUE class member with the value true if the supplied T type is an abstract class type, and provides a VALUE class member with the value false otherwise. This meta-function matches the behavior std::is_abstract would have if it were available on C++03 platforms.

See Component bsls_protocoltest


Member Typedef Documentation

template<class T >
typedef char bsls::ProtocolTest_IsAbstract< T >::YesType

Member Enumeration Documentation

template<class T >
anonymous enum
Enumerator:
VALUE 

Member Function Documentation

template<class T >
template<class U >
static NoType bsls::ProtocolTest_IsAbstract< T >::test ( U(*)  [1]  )  [static]
template<class T >
template<class U >
static YesType bsls::ProtocolTest_IsAbstract< T >::test (   ...  )  [static]

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