FMX.BoostAlgorithms Sample

From RAD Studio Code Examples
Jump to: navigation, search

This sample shows how to use the Algorithm Boost Library using FireMonkey.


You can find the Boost Algorithms sample project at:


This application allows you to test different Boost Algorithms. You can add integer numbers to a list using a set of TButton, TNumberBox and TListBox controls. This list acts as the input for the Boost Algorithms tests. A TMemo component displays the returned values.

This sample application only supports the 64-bit Windows target platform.

How to Use the Sample

  1. Navigate to the location given above and open CppBoostAlgorithms.cbproj.
  2. Press F9 or choose Run > Run.
  3. Click the Add to List button to introduce different numbers in the list.
  4. Click the Test button to observe the results returned by the tests.
  5. Click the Clear List button to remove the numbers in the list.
Note: To deploy this sample application you must install the Boost Libraries.


File Contains


Contains the base form.


The project itself.



  • The OnClick event is used to generate three different event-handler for the three TButton components of the Form1:
    • An event-handler for the Add to List button in order to add numbers to the list.
    • An event-handler for the Clear List button in order to clear the entire list.
    • An event-handler for the Test button in order to call the Boost Algorithms and return their results in the TMemo component.


See Also