Regina 7.3 Calculation Engine
|
Provides a type alias to help identify where in the class hierarchy the output functions T::str() and T::detail() are implemented. More...
#include <core/output.h>
Public Types | |
using | type = std::remove_reference_t< decltype(test(std::declval< T >()))> |
The class in which T::str() and T::detail() are implemented. More... | |
Provides a type alias to help identify where in the class hierarchy the output functions T::str() and T::detail() are implemented.
If T is a class derived (directly or indirectly) from some class Output<...>, then OutputBase<T>::type
is defined to be this parent class Output<...>. If T is derived from multiple Output<...> classes (like SnapPeaTriangulation is), then this ambiguity will be resolved if possible by prioritising Output<T, ...>.
If T is not derived from any class Output<...>, then OutputBase<T>::type
is defined to be T itself.
This helper class can be useful when trying to disambiguate between the implementation of str() that is inherited from Output, versus an extended implementation of str() (perhaps with more arguments) that is implemented in the class T itself.
using regina::OutputBase< T >::type = std::remove_reference_t<decltype(test(std::declval<T>()))> |
The class in which T::str() and T::detail() are implemented.
If T is derived from the Output template class, then this type is the corresponding Output<X> base class. Otherwise, this type is T itself.