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 » user 'Value' [FEATURE REQUEST]
Re: user 'Value' [FEATURE REQUEST] [message #3440 is a reply to message #3437] Thu, 25 May 2006 15:17 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Usually this is solved by defining your own class/struct, something like

struct ArrayWithVal {
Array<int> ints;
Value userValue;
};

In C++ probably construction like

class ArrayWithVal : public Array<int> {
Value userValue;
};
(err.. you should probably write that as template)

would maybe give you advantage in some situations (ability to store both Array<> and ArrayWithVal into the Array<> * pointer, or to give some function ArrayWithVal instead of Array<>, etc..)

Depends on what you need and how much sure you are about what you are doing, when you are designing new class.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: short-hand
Next Topic: container.At(not_existed_item_index)
Goto Forum:
  


Current Time: Thu Aug 07 11:21:03 CEST 2025

Total time taken to generate the page: 0.03364 seconds