From: Daniel Arndt Date: Thu, 7 May 2020 21:18:47 +0000 (-0400) Subject: Replace boost::irange X-Git-Tag: v9.2.0-rc1~57^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b85f2d7a5cd17b61d5f718101728eca6c82645c;p=dealii.git Replace boost::irange --- diff --git a/include/deal.II/fe/fe_values.h b/include/deal.II/fe/fe_values.h index 109a2c036a..33bd3f1276 100644 --- a/include/deal.II/fe/fe_values.h +++ b/include/deal.II/fe/fe_values.h @@ -2936,7 +2936,7 @@ public: * `i` and `j` taking on all valid indices for cell degrees of freedom, as * defined by the finite element passed to `fe_values`. */ - boost::integer_range + std_cxx20::ranges::iota_view dof_indices() const; /** @@ -2971,7 +2971,7 @@ public: * @note If the @p start_dof_index is equal to the number of DoFs in the cell, * then the returned index range is empty. */ - boost::integer_range + std_cxx20::ranges::iota_view dof_indices_starting_at(const unsigned int start_dof_index) const; /** @@ -3004,7 +3004,7 @@ public: * @note If the @p end_dof_index is equal to zero, then the returned index * range is empty. */ - boost::integer_range + std_cxx20::ranges::iota_view dof_indices_ending_at(const unsigned int end_dof_index) const; //@} @@ -5528,34 +5528,34 @@ FEValuesBase::get_inverse_jacobians() const template -inline boost::integer_range +inline std_cxx20::ranges::iota_view FEValuesBase::dof_indices() const { - return boost::irange(0U, dofs_per_cell); + return {0U, dofs_per_cell}; } template -inline boost::integer_range +inline std_cxx20::ranges::iota_view FEValuesBase::dof_indices_starting_at( const unsigned int start_dof_index) const { Assert(start_dof_index <= dofs_per_cell, ExcIndexRange(start_dof_index, 0, dofs_per_cell + 1)); - return boost::irange(start_dof_index, dofs_per_cell); + return {start_dof_index, dofs_per_cell}; } template -inline boost::integer_range +inline std_cxx20::ranges::iota_view FEValuesBase::dof_indices_ending_at( const unsigned int end_dof_index) const { Assert(end_dof_index < dofs_per_cell, ExcIndexRange(end_dof_index, 0, dofs_per_cell)); - return boost::irange(0U, end_dof_index + 1); + return {0U, end_dof_index + 1}; }