Learn how to a build a cloud-first strategyRegister Now

  • 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

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
1 Solution
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?
TError104Author Commented:
The array should be in the same order like the buffer list.
After its been passed the buffer list will be rewritten.

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