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 » substring find
Re: substring find [message #866 is a reply to message #861] Mon, 06 February 2006 11:37 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
luzr wrote on Mon, 06 February 2006 05:28

No, small string optimization means that for small strings, you keep data inside String object, something like:

String {
struct Large {
const char *ptr;
....
}
union {
char data[16]
Large large_string;
}
};
Yes, that was what I thought. And it's similar to how the Mitor works - storing element data in the memory area of the container object itself.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: storing my struct in a Value
Next Topic: bits/atomicity.h
Goto Forum:
  


Current Time: Thu May 16 05:11:43 CEST 2024

Total time taken to generate the page: 0.02674 seconds