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 » why not "T & Add(const T & x)" in all containers
Re: why not "T & Add(const T & x)" in all containers [message #29449 is a reply to message #29447] Thu, 21 October 2010 11:10 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
kohait00 wrote on Thu, 21 October 2010 03:02

kohait00 wrote on Fri, 17 September 2010 09:15

hi what about Insert and Set behaviour? should do the same..


just a reminder, since i've still got the changes around in my code, just to know if they once might become upstream. or what your position is..


Insert/Set has sort of problem as it can insert more than single element, and even worse, it can insert ZERO elements. (Note that for single element it already returns T&).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: InitCaps() proposal
Next Topic: Incorrect implementation of INITBLOCK (and similar macros) in case when flagBLITZ is not defined.
Goto Forum:
  


Current Time: Mon Aug 25 10:51:37 CEST 2025

Total time taken to generate the page: 0.05989 seconds