|
TradeMUX SDK Documentation
1.0
TradeMUX SDK Documentation
|
| int ArrayBsearch< T > | ( | TMXArray< T > | array, |
| T | value, | ||
| int | count = WHOLE_ARRAY, |
||
| int | start = 0, |
||
| int | direction = MODE_ASCEND |
||
| ) |
Searches for a specified value in a one-dimension array
| T | Array content type |
| array | Array for search |
| value | Value for search |
| count | Count of elements to search for. By default, it searches in the whole array |
| start | Starting index to search for. By default, the search starts at the first element |
| direction | Search direction. It can be any of the following values: MODE_ASCEND searching in forward direction, MODE_DESCEND searching in backward direction |
Binary search processes only sorted arrays. To sort numeric arrays use the ArraySort() function