@@ -272,8 +272,8 @@ namespace xt
272272 ************************/
273273
274274 template <class R , class F , class ... S>
275- inline R
276- apply (std:: size_t index, F&& func, const std::tuple<S...>& s) NOEXCEPT(noexcept (func(std::get<0 >(s))))
275+ inline R apply (std:: size_t index, F&& func, const std::tuple<S...>& s)
276+ NOEXCEPT(noexcept (func(std::get<0 >(s))))
277277 {
278278 XTENSOR_ASSERT (sizeof ...(S) > index);
279279 return std::apply (
@@ -382,16 +382,14 @@ namespace xt
382382 res[i] = normalize_axis (expr.dimension (), axes[i]);
383383 }
384384
385- XTENSOR_ASSERT (
386- std::all_of (
387- res.begin (),
388- res.end (),
389- [&expr](auto ax_el)
390- {
391- return ax_el < expr.dimension ();
392- }
393- )
394- );
385+ XTENSOR_ASSERT (std::all_of (
386+ res.begin (),
387+ res.end (),
388+ [&expr](auto ax_el)
389+ {
390+ return ax_el < expr.dimension ();
391+ }
392+ ));
395393
396394 return res;
397395 }
@@ -403,16 +401,14 @@ namespace xt
403401 normalize_axis (E& expr, C&& axes)
404402 {
405403 static_cast <void >(expr);
406- XTENSOR_ASSERT (
407- std::all_of (
408- axes.begin (),
409- axes.end (),
410- [&expr](auto ax_el)
411- {
412- return ax_el < expr.dimension ();
413- }
414- )
415- );
404+ XTENSOR_ASSERT (std::all_of (
405+ axes.begin (),
406+ axes.end (),
407+ [&expr](auto ax_el)
408+ {
409+ return ax_el < expr.dimension ();
410+ }
411+ ));
416412 return std::forward<C>(axes);
417413 }
418414
@@ -433,16 +429,14 @@ namespace xt
433429 }
434430 );
435431
436- XTENSOR_ASSERT (
437- std::all_of (
438- res.begin (),
439- res.end (),
440- [&expr](auto ax_el)
441- {
442- return ax_el < expr.dimension ();
443- }
444- )
445- );
432+ XTENSOR_ASSERT (std::all_of (
433+ res.begin (),
434+ res.end (),
435+ [&expr](auto ax_el)
436+ {
437+ return ax_el < expr.dimension ();
438+ }
439+ ));
446440
447441 return res;
448442 }
@@ -457,16 +451,14 @@ namespace xt
457451 R res;
458452 xt::resize_container (res, std::size (axes));
459453 std::copy (std::begin (axes), std::end (axes), std::begin (res));
460- XTENSOR_ASSERT (
461- std::all_of (
462- res.begin (),
463- res.end (),
464- [&expr](auto ax_el)
465- {
466- return ax_el < expr.dimension ();
467- }
468- )
469- );
454+ XTENSOR_ASSERT (std::all_of (
455+ res.begin (),
456+ res.end (),
457+ [&expr](auto ax_el)
458+ {
459+ return ax_el < expr.dimension ();
460+ }
461+ ));
470462 return res;
471463 }
472464
@@ -476,16 +468,14 @@ namespace xt
476468 R&&>
477469 {
478470 static_cast <void >(expr);
479- XTENSOR_ASSERT (
480- std::all_of (
481- std::begin (axes),
482- std::end (axes),
483- [&expr](auto ax_el)
484- {
485- return ax_el < expr.dimension ();
486- }
487- )
488- );
471+ XTENSOR_ASSERT (std::all_of (
472+ std::begin (axes),
473+ std::end (axes),
474+ [&expr](auto ax_el)
475+ {
476+ return ax_el < expr.dimension ();
477+ }
478+ ));
489479 return std::move (axes);
490480 }
491481
@@ -919,18 +909,18 @@ namespace xt
919909 {
920910 explicit overlapping_memory_checker (const Dst& aDst)
921911 : overlapping_memory_checker_base(
922- [&]()
923- {
924- if (aDst.size () == 0 )
925- {
926- return memory_range ();
927- }
928- else
929- {
930- return memory_range (std::addressof (*aDst.begin ()), std::addressof (*aDst.rbegin ()));
931- }
932- }()
933- )
912+ [&]()
913+ {
914+ if (aDst.size () == 0 )
915+ {
916+ return memory_range ();
917+ }
918+ else
919+ {
920+ return memory_range (std::addressof (*aDst.begin ()), std::addressof (*aDst.rbegin ()));
921+ }
922+ }()
923+ )
934924 {
935925 }
936926 };
0 commit comments