---

** [tickets:#1773] clm: Inefficient use of the std::set::size() method**

**Status:** accepted
**Milestone:** 5.0.RC2
**Created:** Thu Apr 21, 2016 08:11 AM UTC by Anders Widell
**Last Updated:** Thu Apr 21, 2016 08:11 AM UTC
**Owner:** Anders Widell


The empty() method should be used to check if a set is empty, instead of 
comparing the result of the size() method with zero. Depending on the STL 
implementation, the std::set::size() method can take linear time.

This bug was found using the cppcheck tool.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to