From 0b01f32e36767d85975931e386872f6c7d32fef6 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 29 Apr 2025 14:11:18 +0200 Subject: [PATCH] quantitycallbacks: use _t type traits --- opm/models/common/quantitycallbacks.hh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/opm/models/common/quantitycallbacks.hh b/opm/models/common/quantitycallbacks.hh index 8be5716d9f..0b4a822548 100644 --- a/opm/models/common/quantitycallbacks.hh +++ b/opm/models/common/quantitycallbacks.hh @@ -38,6 +38,7 @@ #include namespace Opm { + /*! * \ingroup Discretization * @@ -53,7 +54,7 @@ class TemperatureCallback using ResultRawType = decltype(std::declval().temperature(0)); public: - using ResultType = typename std::remove_const::type>::type; + using ResultType = std::remove_const_t>; using ResultValueType = typename MathToolbox::ValueType; explicit TemperatureCallback(const ElementContext& elemCtx) @@ -89,7 +90,7 @@ class PressureCallback using ResultRawType = decltype(std::declval().pressure(0)); public: - using ResultType = typename std::remove_const::type>::type; + using ResultType = std::remove_const_t>; using ResultValueType = typename MathToolbox::ValueType; explicit PressureCallback(const ElementContext& elemCtx) @@ -136,7 +137,7 @@ class BoundaryPressureCallback using IntensiveQuantities = GetPropType; using IQRawFluidState = decltype(std::declval().fluidState()); - using IQFluidState = typename std::remove_const::type>::type; + using IQFluidState = std::remove_const_t>; using IQScalar = typename IQFluidState::Scalar; using Toolbox = MathToolbox; @@ -200,7 +201,7 @@ class DensityCallback using ResultRawType = decltype(std::declval().density(0)); public: - using ResultType = typename std::remove_const::type>::type; + using ResultType = std::remove_const_t>; using ResultValueType = typename MathToolbox::ValueType; explicit DensityCallback(const ElementContext& elemCtx) @@ -297,7 +298,7 @@ class ViscosityCallback using ResultRawType = decltype(std::declval().viscosity(0)); public: - using ResultType = typename std::remove_const::type>::type; + using ResultType = std::remove_const_t>; using ResultValueType = typename MathToolbox::ValueType; explicit ViscosityCallback(const ElementContext& elemCtx) @@ -348,7 +349,7 @@ class VelocityCallback enum { dim = GridView::dimensionworld }; public: - using ResultType = typename std::remove_const::type>::type; + using ResultType = std::remove_const_t>; using ResultFieldType = typename ResultType::field_type; using ResultFieldValueType = typename MathToolbox::ValueType; @@ -381,7 +382,7 @@ class VelocityComponentCallback using ResultRawType = decltype(IntensiveQuantities().velocityCenter()[0]); public: - using ResultType = typename std::remove_const::type>::type; + using ResultType = std::remove_const_t>; using ResultValueType = typename MathToolbox::ValueType; explicit VelocityComponentCallback(const ElementContext& elemCtx) @@ -430,7 +431,7 @@ class MoleFractionCallback using ResultRawType = decltype(std::declval().moleFraction(0, 0)); public: - using ResultType = typename std::remove_const::type>::type; + using ResultType = std::remove_const_t>; using ResultValueType = typename MathToolbox::ValueType; explicit MoleFractionCallback(const ElementContext& elemCtx)