]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace boost::irange 10018/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 7 May 2020 21:18:47 +0000 (17:18 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 7 May 2020 21:19:51 +0000 (17:19 -0400)
include/deal.II/fe/fe_values.h

index 109a2c036a473d5cfa5bcc4667c39208ca672174..33bd3f127624cea82144eeee5a34e4bb5675f9ee 100644 (file)
@@ -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<unsigned int>
+  std_cxx20::ranges::iota_view<unsigned int, unsigned int>
   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<unsigned int>
+  std_cxx20::ranges::iota_view<unsigned int, unsigned int>
   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<unsigned int>
+  std_cxx20::ranges::iota_view<unsigned int, unsigned int>
   dof_indices_ending_at(const unsigned int end_dof_index) const;
 
   //@}
@@ -5528,34 +5528,34 @@ FEValuesBase<dim, spacedim>::get_inverse_jacobians() const
 
 
 template <int dim, int spacedim>
-inline boost::integer_range<unsigned int>
+inline std_cxx20::ranges::iota_view<unsigned int, unsigned int>
 FEValuesBase<dim, spacedim>::dof_indices() const
 {
-  return boost::irange(0U, dofs_per_cell);
+  return {0U, dofs_per_cell};
 }
 
 
 
 template <int dim, int spacedim>
-inline boost::integer_range<unsigned int>
+inline std_cxx20::ranges::iota_view<unsigned int, unsigned int>
 FEValuesBase<dim, spacedim>::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 <int dim, int spacedim>
-inline boost::integer_range<unsigned int>
+inline std_cxx20::ranges::iota_view<unsigned int, unsigned int>
 FEValuesBase<dim, spacedim>::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};
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.