]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate IndexSet::pop_front/back().
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 23 Jan 2025 17:35:41 +0000 (10:35 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 23 Jan 2025 17:35:41 +0000 (10:35 -0700)
include/deal.II/base/index_set.h

index 1ed786270cff62823cde65bc003bd16c283bc955..1a98152b9109a74c66c474e8fc94e4ec379ea0c5 100644 (file)
@@ -484,14 +484,24 @@ public:
   /**
    * Remove and return the last element of the last range.
    * This function throws an exception if the IndexSet is empty.
+   *
+   * @deprecated This function is deprecated. Conceptually, an index set is a
+   *   set; it should not be seen as a sorted container in which it is clear
+   *   what element is stored "last".
    */
+  DEAL_II_DEPRECATED_EARLY
   size_type
   pop_back();
 
   /**
    * Remove and return the first element of the first range.
    * This function throws an exception if the IndexSet is empty.
+   *
+   * @deprecated This function is deprecated. Conceptually, an index set is a
+   *   set; it should not be seen as a sorted container in which it is clear
+   *   what element is stored "first".
    */
+  DEAL_II_DEPRECATED_EARLY
   size_type
   pop_front();
 

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.