- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It can be cumbersome to define STL containers with scalable or cache_aligned allocators over and over. So, I have contributed some more code from YetiSim which wraps standard STL containers with appropriate allocators.
For example, to define an STL vector you can do:
tcc::cache_aligned_vector::vector myVector;
tcc::scalable_vector::vector myVector2;
When you have to write a lot of these, it becomes less cumbersome to remember this convention than to write out allocator arguments.
You can get the code from here:
http://code.google.com/p/tbbcommunity/
AJ
It can be cumbersome to define STL containers with scalable or cache_aligned allocators over and over. So, I have contributed some more code from YetiSim which wraps standard STL containers with appropriate allocators.
For example, to define an STL vector you can do:
tcc::cache_aligned_vector
tcc::scalable_vector:
When you have to write a lot of these, it becomes less cumbersome to remember this convention than to write out allocator arguments.
You can get the code from here:
http://code.google.com/p/tbbcommunity/
AJ
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page