Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

HowTo creat a float buffer and pass all elements in the buffer to another class without using iterator

Hi,
I'm searching for something like a floatbuffer.
The intention is to store several float values (the number of stored values varies) in something like a list.
When a certain criteria is fulfilled this "list" should be passed as a float array to another class.

Is there a quick way to get something like this done (in this case speed matters...)?

If needed please ask for further information and I'll provide them.

Kind regards
0
TError104
Asked:
TError104
1 Solution
 
AxterCommented:
You can use a CArray or a std::vector<float> container.

Do you need the array to be sorted, and does the array need to be a continuous memory block like a C-Style array?
0
 
TError104Author Commented:
The array should be in the same order like the buffer list.
After its been passed the buffer list will be rewritten.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now