Add comment on trailing return type with decltype that is used for detecting the existence of setUseFixedOrder member function

This commit is contained in:
Lisa Julia Nebel 2024-01-26 14:27:12 +01:00
parent 5b50a4801f
commit 74608147c0

View File

@ -95,6 +95,7 @@ struct AMGSmootherArgsHelper<Opm::ParallelOverlappingILU0<M,V,V,C>>
}; };
// trailing return type with decltype used for detecting existence of setUseFixedOrder member function by overloading the setUseFixedOrder function
template <typename C> template <typename C>
auto setUseFixedOrder(C criterion, bool booleanValue) -> decltype(criterion.setUseFixedOrder(booleanValue)) auto setUseFixedOrder(C criterion, bool booleanValue) -> decltype(criterion.setUseFixedOrder(booleanValue))
{ {