DCMTK: OFenable_if< B, T > Struct Template Reference

DCMTK Version 3.6.9 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 Sat Mar 1 2025 for DCMTK Version 3.6.9 by Doxygen 1.13.2