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 #3528 is a reply to message #3527] Wed, 31 May 2006 11:15 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
qwerty wrote on Wed, 31 May 2006 04:46

...what is "default constructed" value for item inside container, where I getting value w/ .At and there is not such a value / that index ?

I guess, its constructor like thong, but generic types(int, double...)?

parsed through code(in rush), not found...

thanx


A good question. I guess this needs discussion / better documentation.

Right now, int, double etc... are left uninitialized, whereas for types with constructor default constructor is used. I guess this is faster and you can always specify "init".

It is true that this is unsimiliar to STL, where quite often fundamental types are zeroed using the T() "constructor". Frankly, this C++ feature is something I never really liked...

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: Wed Jun 18 01:16:50 CEST 2025

Total time taken to generate the page: 0.04315 seconds