From: Wolfgang Bangerth Date: Wed, 10 Mar 2010 00:39:21 +0000 (+0000) Subject: Use .empty() instead of .size()==0. X-Git-Tag: v8.0.0~6352 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e00b480ddf1322fe6c35810e691f13b8825238;p=dealii.git Use .empty() instead of .size()==0. git-svn-id: https://svn.dealii.org/trunk@20776 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparsity_tools.cc b/deal.II/lac/source/sparsity_tools.cc index d402d872f2..d4e0e1aca2 100644 --- a/deal.II/lac/source/sparsity_tools.cc +++ b/deal.II/lac/source/sparsity_tools.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008, 2009 by the deal.II authors +// Copyright (C) 2008, 2009, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -262,7 +262,7 @@ namespace SparsityTools // now if no valid points remain: // find dof with lowest coordination // number - if (last_round_dofs.size() == 0) + if (last_round_dofs.empty()) last_round_dofs .push_back (internal::find_unnumbered_starting_index (sparsity, new_indices)); @@ -318,7 +318,7 @@ namespace SparsityTools // components of the graph // that we would then have to // do next - if (next_round_dofs.size() == 0) + if (next_round_dofs.empty()) { if (std::find (new_indices.begin(), new_indices.end(), numbers::invalid_unsigned_int) @@ -343,7 +343,7 @@ namespace SparsityTools // an error if we got // here and starting // indices were given - Assert (starting_indices.size() == 0, + Assert (starting_indices.empty(), ExcMessage ("The input graph appears to have more than one " "component, but as stated in the documentation " "we only want to reorder such graphs if no "