From fe34a03fedc5543a85e61265855f91a0aaafe95d Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 9 Mar 2010 00:37:36 +0000 Subject: [PATCH] Use a faster variant of functions. git-svn-id: https://svn.dealii.org/trunk@20758 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/index_set.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/base/include/base/index_set.h b/deal.II/base/include/base/index_set.h index 2ca1086285..c5dad3458b 100644 --- a/deal.II/base/include/base/index_set.h +++ b/deal.II/base/include/base/index_set.h @@ -167,7 +167,7 @@ class IndexSet * consideration. */ unsigned int n_intervals () const; - + /** * Compress the internal * representation by merging @@ -231,7 +231,7 @@ class IndexSet */ template void print(STREAM &out) const; - + #ifdef DEAL_II_USE_TRILINOS /** * Given an MPI communicator, @@ -330,12 +330,12 @@ class IndexSet && (range_1.end < range_2.end))); } - + static bool end_compare(const IndexSet::Range & x, const IndexSet::Range & y) { return x.end < y.end; } - + friend inline bool operator== (const Range &range_1, const Range &range_2) @@ -427,7 +427,7 @@ inline void IndexSet::set_size (const unsigned int sz) { - Assert (ranges.size() == 0, + Assert (ranges.empty(), ExcMessage ("This function can only be called if the current " "object does not yet contain any elements.")); index_space_size = sz; @@ -532,7 +532,7 @@ inline bool IndexSet::is_element (const unsigned int index) const { - if (ranges.size() > 0) + if (ranges.empty() == false) { compress (); -- 2.39.5