DCMTK: OFenable_if< B, T > Struct Template Reference

DCMTK Version 3.7.0 OFFIS DICOM Toolkit

Loading...
Searching...
No Matches
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

  B | If B is OFTrue, OFenable_if has a public member typedef type, equal to T; otherwise, there is no member typedef.
  T | The type to use for "type" if B equals OFTrue. Defaults to void.

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

- ofstd/include/dcmtk/ofstd/oftraits.h

Generated on for DCMTK Version 3.7.0 by Doxygen 1.16.1