From 08afe26b9d73e0c3a713e4afb9a61311d8b94c9b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 23 Jan 2025 10:35:41 -0700 Subject: [PATCH] Deprecate IndexSet::pop_front/back(). --- include/deal.II/base/index_set.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/deal.II/base/index_set.h b/include/deal.II/base/index_set.h index 1ed786270c..1a98152b91 100644 --- a/include/deal.II/base/index_set.h +++ b/include/deal.II/base/index_set.h @@ -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(); -- 2.39.5