Re: [Monotone-devel] using empty() instead of size()
From:
Derek Scherger
Subject:
Re: [Monotone-devel] using empty() instead of size()
Date:
Mon, 22 Sep 2008 20:52:09 -0600
Even if size does have to traverse a list to count the elements one would expect that traversing an *empty* list should be reasonably quick. All the same, empty() does seem a bit easier on the eyes and if it wins on performance too then what the heck.