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 » container.At(not_existed_item_index)
Re: container.At(not_existed_item_index) [message #3532 is a reply to message #3529] Wed, 31 May 2006 13:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
qwerty wrote on Wed, 31 May 2006 05:32

It would be nice if there can be:

Array<int> my_array(default_value)
or
Array<int> my_array(default_function(default_args))

or something_like_that...


I do not believe so. It would make containers too heavy and is not really needed in practice.

Adding another parameter to At is really very easy and in fact, does it matter whether the default_value is specified in constructor, or in At call? What is the point of storing value inside container just because of this?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: user 'Value' [FEATURE REQUEST]
Next Topic: .AsValue() ??
Goto Forum:
  


Current Time: Thu Aug 07 14:46:29 CEST 2025

Total time taken to generate the page: 0.03882 seconds