DCMTK  Version 3.6.1 20170228
OFFIS DICOM Toolkit
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
OFenable_if< B, T > Struct Template Reference

Metafunction to conditionally remove functions and classes from overload resolution. More...

Detailed Description

template<OFBool B, typename T = void>
struct OFenable_if< B, T >

Metafunction to conditionally remove functions and classes from overload resolution.

This metafunction is a convenient way to leverage SFINAE to conditionally remove functions and classes from overload resolution based on type traits and to provide separate function overloads and specializations for different type traits. OFenable_if can be used as an additional function argument (not applicable to operator overloads), as a return type (not applicable to constructors and destructors), or as a class template or function template parameter.

See also
http://en.cppreference.com/w/cpp/types/enable_if for details.
Template Parameters
BIf B is OFTrue, OFenable_if has a public member typedef type, equal to T; otherwise, there is no member typedef.
TThe type to use for "type" if B equals OFTrue. Defaults to void.

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


Generated on Tue Feb 28 2017 for DCMTK Version 3.6.1 20170228 by Doxygen 1.8.8