U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Mon Sep 21 18:40:40 GMT+2 2026

Total time taken to generate the page: 0.00863 seconds