Polymake Template Library (PTL): polymake::least_derived_class< T > Struct Template Reference
polymake::least_derived_class< T > Struct Template Reference

Inherits polymake::least_derived_class_impl< T, TPartial >.

Detailed Description

template<typename... T>
struct polymake::least_derived_class< T >

Find a class among all given types all others are derived from. If there is none, the result is undefined. This differs from std::common_type in two aspects:

  • default class constructors may be protected or even deleted; clang can only report common types for classes with public default constructors
  • this function does not report the common base class if that does not occur among the arguments

The documentation for this struct was generated from the following file:
  • lib/core/include/type_utils.h