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 » Question / Issue about Vector
Re: Question / Issue about Vector [message #12845 is a reply to message #12841] Wed, 21 November 2007 07:33 Go to previous messageGo to previous message
alexn is currently offline  alexn
Messages: 5
Registered: November 2007
Promising Member
Hi,

The basic problem I had with the std was the assumption of the "worse" case classes that needed individual constructors on moves or expansion. The std allocator would get me the alignment solution but the rest of the class methods would drive performance into the mud.

Yet I wanted some of the runtime checks and protections that std::vector provided. So, although I could use a standard array, I would be consistently writing ASSERTS and Checks... that the code became too "hard to follow".

Hence I ended up a my own class that assumed deep copy, provided alignment and provided my basic requirements of a set of "vector" methods. (each method being added as I needed them.) The only real difference between Vector and my class was alignment awareness.

Ultimate++ assumptions about moveable was one of the "exciting" things about the framework. I really don't want to go back to using std and I would like to leverage Ultimate++ as much as possible.

AlexN




 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Juste simple question ~
Next Topic: Bug in Core06.cpp or in U++ Core value types tutorial
Goto Forum:
  


Current Time: Sun Apr 27 22:34:46 CEST 2025

Total time taken to generate the page: 0.03658 seconds