@@ -51,67 +51,70 @@ namespace mgis::function {
5151 constexpr FixedSizeView (const PreconditionsCheck<doPreconditionsCheck>&,
5252 FunctionType&);
5353 // ! \brief perform consistency checks
54- constexpr bool check (AbstractErrorHandler&) const ;
54+ [[nodiscard]] constexpr bool check (AbstractErrorHandler&) const ;
5555 // ! \brief return the underlying space
56- constexpr decltype (auto ) getSpace() const ;
56+ [[nodiscard]] constexpr decltype (auto ) getSpace() const ;
5757 // ! \return the number of components
58- constexpr size_type getNumberOfComponents () const noexcept ;
58+ [[nodiscard]] constexpr size_type getNumberOfComponents () const noexcept ;
5959 /* !
6060 * \brief call operator
6161 * \param[in] i: integration point index
6262 */
63- constexpr auto operator ()(const element_index<Space>&) const
63+ [[nodiscard]] constexpr auto operator ()(const element_index<Space>&) const
6464 requires((internals::FunctionResultQuery<FunctionType>::b1) &&
6565 (isFunctionConstResultTypeMappable<FunctionType>));
6666 /* !
6767 * \brief call operator
6868 * \param[in] wk: element workspace
6969 * \param[in] i: integration point index
7070 */
71- constexpr auto operator ()(const element_workspace<Space>&,
72- const element_index<Space>&) const
71+ [[nodiscard]] constexpr auto operator ()(const element_workspace<Space>&,
72+ const element_index<Space>&) const
7373 requires((internals::FunctionResultQuery<FunctionType>::b2) &&
7474 (isFunctionConstResultTypeMappable<FunctionType>));
7575 /* !
7676 * \brief call operator
7777 * \param[in] e: cell index
7878 * \param[in] i: integration point index
7979 */
80- constexpr auto operator ()(const cell_index<Space>&,
81- const quadrature_point_index<Space>&) const
80+ [[nodiscard]] constexpr auto operator ()(
81+ const cell_index<Space>&, const quadrature_point_index<Space>&) const
8282 requires((internals::FunctionResultQuery<FunctionType>::b3) &&
8383 (isFunctionConstResultTypeMappable<FunctionType>));
8484 /* !
8585 * \brief call operator
8686 * \param[in] e: cell index
8787 * \param[in] i: integration point index
8888 */
89- constexpr auto operator ()(const cell_workspace<Space>&,
90- const cell_index<Space>&,
91- const quadrature_point_index<Space>&) const
89+ [[nodiscard]] constexpr auto operator ()(
90+ const cell_workspace<Space>&,
91+ const cell_index<Space>&,
92+ const quadrature_point_index<Space>&) const
9293 requires((internals::FunctionResultQuery<FunctionType>::b4) &&
9394 (isFunctionConstResultTypeMappable<FunctionType>));
9495 /* !
9596 * \brief call operator
9697 * \param[in] i: integration point index
9798 */
98- constexpr mutable_value_type operator ()(const element_index<Space>&) //
99+ [[nodiscard]] constexpr mutable_value_type operator ()(
100+ const element_index<Space>&) //
99101 requires((internals::FunctionResultQuery<FunctionType>::b1) &&
100102 (isFunctionResultTypeMappable<FunctionType>));
101103 /* !
102104 * \brief call operator
103105 * \param[in] i: integration point index
104106 */
105- constexpr mutable_value_type operator ()(const element_workspace<Space>&,
106- const element_index<Space>&) //
107+ [[nodiscard]] constexpr mutable_value_type operator ()(
108+ const element_workspace<Space>&,
109+ const element_index<Space>&) //
107110 requires((internals::FunctionResultQuery<FunctionType>::b2) &&
108111 (isFunctionResultTypeMappable<FunctionType>));
109112 /* !
110113 * \brief call operator
111114 * \param[in] e: cell index
112115 * \param[in] i: integration point index
113116 */
114- constexpr mutable_value_type operator ()(
117+ [[nodiscard]] constexpr mutable_value_type operator ()(
115118 const cell_index<Space>&,
116119 const quadrature_point_index<Space>&) //
117120 requires((internals::FunctionResultQuery<FunctionType>::b3) &&
@@ -121,7 +124,7 @@ namespace mgis::function {
121124 * \param[in] e: cell index
122125 * \param[in] i: integration point index
123126 */
124- constexpr mutable_value_type operator ()(
127+ [[nodiscard]] constexpr mutable_value_type operator ()(
125128 const cell_workspace<Space>&,
126129 const cell_index<Space>&,
127130 const quadrature_point_index<Space>&) //
@@ -138,23 +141,24 @@ namespace mgis::function {
138141 * \param[in] f: function
139142 */
140143 template <size_type N, typename FunctionType>
141- constexpr auto view (FunctionType&) requires(
144+ [[nodiscard]] constexpr auto view (FunctionType&) requires(
142145 (N > 0 ) && (N != dynamic_extent) && //
143146 (FunctionConcept<std::decay_t <FunctionType>>)&& //
144147 (!std::is_rvalue_reference_v<FunctionType>));
145148
146149 template <FunctionConcept FunctionType, size_type N>
147- constexpr decltype (auto ) getSpace(const FixedSizeView<FunctionType, N>&);
150+ [[nodiscard]] constexpr decltype (auto ) getSpace(
151+ const FixedSizeView<FunctionType, N>&);
148152 // ! \brief perform consistency checks
149153 template <FunctionConcept FunctionType, size_type N>
150- constexpr bool check (AbstractErrorHandler&,
151- const FixedSizeView<FunctionType, N>&);
154+ [[nodiscard]] constexpr bool check (AbstractErrorHandler&,
155+ const FixedSizeView<FunctionType, N>&);
152156 // ! \brief allocate internal workspace
153157 template <FunctionConcept FunctionType, size_type N>
154158 constexpr void allocateWorkspace (FixedSizeView<FunctionType, N>&) noexcept ;
155159 // ! \return the number of components
156160 template <FunctionConcept FunctionType, size_type N>
157- constexpr size_type getNumberOfComponents (
161+ [[nodiscard]] constexpr size_type getNumberOfComponents (
158162 const FixedSizeView<FunctionType, N>&) noexcept ;
159163
160164} // end of namespace mgis::function
0 commit comments