@@ -188,11 +188,11 @@ namespace mgis {
188188 * \param[in] args: arguments passed to the constructor
189189 */
190190 template <typename Type, typename ... ArgumentsTypes>
191- [[nodiscard]] std::optional<Type> construct (Context&,
192- const std::source_location &,
193- ArgumentsTypes&&...) noexcept
194- requires std::is_constructible_v<std::remove_const_t<Type>,
195- ArgumentsTypes...>;
191+ [[nodiscard]] std::optional<Type> construct (
192+ Context &,
193+ const std::source_location&,
194+ ArgumentsTypes&&...) noexcept requires
195+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
196196 /* !
197197 * \brief try to build a unique pointer holding the given type.
198198 *
@@ -207,11 +207,11 @@ namespace mgis {
207207 * \param[in] args: arguments passed to the constructor
208208 */
209209 template <typename Type, typename ... ArgumentsTypes>
210- [[nodiscard]] std::unique_ptr<Type> make_unique (Context&,
211- const std::source_location &,
212- ArgumentsTypes&&...) noexcept
213- requires std::is_constructible_v<std::remove_const_t<Type>,
214- ArgumentsTypes...>;
210+ [[nodiscard]] std::unique_ptr<Type> make_unique (
211+ Context &,
212+ const std::source_location&,
213+ ArgumentsTypes&&...) noexcept requires
214+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
215215 /* !
216216 * \brief try to build a unique pointer of a base type holding the given type.
217217 *
@@ -228,9 +228,8 @@ namespace mgis {
228228 template <typename BaseType, typename Type, typename ... ArgumentsTypes>
229229 [[nodiscard]] std::unique_ptr<BaseType> make_unique_as (
230230 Context&, const std::source_location&, ArgumentsTypes&&...) noexcept
231- requires std::is_base_of_v<BaseType, Type> &&
232- std::is_constructible_v<std::remove_const_t<Type>,
233- ArgumentsTypes...>;
231+ requires std::is_base_of_v<BaseType, Type> &&
232+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
234233 /* !
235234 * \brief try to build a shared pointer holding the given type.
236235 *
@@ -244,11 +243,11 @@ namespace mgis {
244243 * \param[in] args: arguments passed to the constructor
245244 */
246245 template <typename Type, typename ... ArgumentsTypes>
247- [[nodiscard]] std::shared_ptr<Type> make_shared (Context&,
248- const std::source_location &,
249- ArgumentsTypes&&...) noexcept
250- requires std::is_constructible_v<std::remove_const_t<Type>,
251- ArgumentsTypes...>;
246+ [[nodiscard]] std::shared_ptr<Type> make_shared (
247+ Context &,
248+ const std::source_location&,
249+ ArgumentsTypes&&...) noexcept requires
250+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
252251 /* !
253252 * \brief try to build a shared pointer of a base type holding the given type.
254253 *
@@ -265,9 +264,8 @@ namespace mgis {
265264 template <typename BaseType, typename Type, typename ... ArgumentsTypes>
266265 [[nodiscard]] std::shared_ptr<BaseType> make_shared_as (
267266 Context&, const std::source_location&, ArgumentsTypes&&...) noexcept
268- requires std::is_base_of_v<BaseType, Type> &&
269- std::is_constructible_v<std::remove_const_t<Type>,
270- ArgumentsTypes...>;
267+ requires std::is_base_of_v<BaseType, Type> &&
268+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
271269
272270#endif
273271
@@ -284,10 +282,9 @@ namespace mgis {
284282 * \param[in] args: arguments passed to the constructor
285283 */
286284 template <typename Type, typename ... ArgumentsTypes>
287- [[nodiscard]] std::optional<Type> construct (Context&,
288- ArgumentsTypes&&...) noexcept
289- requires std::is_constructible_v<std::remove_const_t<Type>,
290- ArgumentsTypes...>;
285+ [[nodiscard]] std::optional<Type> construct (
286+ Context&, ArgumentsTypes&&...) noexcept requires
287+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
291288 /* !
292289 * \brief try to build a unique pointer holding the given type.
293290 *
@@ -302,10 +299,9 @@ namespace mgis {
302299 * \param[in] args: arguments passed to the constructor
303300 */
304301 template <typename Type, typename ... ArgumentsTypes>
305- [[nodiscard]] std::unique_ptr<Type> make_unique (Context&,
306- ArgumentsTypes&&...) noexcept
307- requires std::is_constructible_v<std::remove_const_t<Type>,
308- ArgumentsTypes...>;
302+ [[nodiscard]] std::unique_ptr<Type> make_unique (
303+ Context&, ArgumentsTypes&&...) noexcept requires
304+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
309305 /* !
310306 * \brief try to build a unique pointer of a base type holding the given type.
311307 *
@@ -321,10 +317,9 @@ namespace mgis {
321317 */
322318 template <typename BaseType, typename Type, typename ... ArgumentsTypes>
323319 [[nodiscard]] std::unique_ptr<BaseType> make_unique_as (
324- Context&, ArgumentsTypes&&...) noexcept
325- requires std::is_base_of_v<BaseType, Type> &&
326- std::is_constructible_v<std::remove_const_t<Type>,
327- ArgumentsTypes...>;
320+ Context&, ArgumentsTypes&&...) noexcept requires
321+ std::is_base_of_v<BaseType, Type> &&
322+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
328323 /* !
329324 * \brief try to build a shared pointer holding the given type.
330325 *
@@ -338,10 +333,9 @@ namespace mgis {
338333 * \param[in] args: arguments passed to the constructor
339334 */
340335 template <typename Type, typename ... ArgumentsTypes>
341- [[nodiscard]] std::shared_ptr<Type> make_shared (Context&,
342- ArgumentsTypes&&...) noexcept
343- requires std::is_constructible_v<std::remove_const_t<Type>,
344- ArgumentsTypes...>;
336+ [[nodiscard]] std::shared_ptr<Type> make_shared (
337+ Context&, ArgumentsTypes&&...) noexcept requires
338+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
345339 /* !
346340 * \brief try to build a shared pointer of a base type holding the given type.
347341 *
@@ -357,10 +351,9 @@ namespace mgis {
357351 */
358352 template <typename BaseType, typename Type, typename ... ArgumentsTypes>
359353 [[nodiscard]] std::shared_ptr<BaseType> make_shared_as (
360- Context&, ArgumentsTypes&&...) noexcept
361- requires std::is_base_of_v<BaseType, Type> &&
362- std::is_constructible_v<std::remove_const_t<Type>,
363- ArgumentsTypes...>;
354+ Context&, ArgumentsTypes&&...) noexcept requires
355+ std::is_base_of_v<BaseType, Type> &&
356+ std::is_constructible_v<std::remove_const_t<Type>, ArgumentsTypes...>;
364357
365358} // end of namespace mgis
366359
0 commit comments