Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » [FEATURE REQUEST] bool AMap::HasKey(K key) ;
Re: [FEATURE REQUEST] bool AMap::HasKey(K key) ; [message #43138 is a reply to message #43118] Fri, 16 May 2014 09:04 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Well, I understand that comparing for >= 0 might be confusing at first, but, generally:

- complexity of HasKey is the same as Find

- Find provides more information

- there are many places with similar situation, e.g. String::Find

- less methods in interface are usually better

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: [FIXED] String::Replace(empty string,) => Out of memory!
Next Topic: Unterminated processing info in XmlParser
Goto Forum:
  


Current Time: Tue May 14 15:14:01 CEST 2024

Total time taken to generate the page: 0.03714 seconds