DCMTK  Version 3.6.6
OFFIS DICOM Toolkit
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 Thu Jan 14 2021 for DCMTK Version 3.6.6 by Doxygen 1.8.18