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

This commit is contained in:
Lisa Julia Nebel 2024-01-25 16:04:41 +01:00
parent b99252e2b8
commit 5d8fefca33

View File

@ -255,6 +255,7 @@ protected:
} }
#endif #endif
// 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))
{ {