c++ Programming Glossary: ctarget
Algorithm for index range of values in stl vector http://stackoverflow.com/questions/12215749/algorithm-for-index-range-of-values-in-stl-vector some code here FindBounds bool FindBounds const KEY cTarget UINT uLower UINT uUpper uLower 1 uUpper 1 start with full range.. the bounds as much as possible. while uUpper uLower 1 cTarget m_pKeys uLower split the range in half and discard the half.. uLower 2 keep the lower range. if KeyInRange uLower uBound cTarget uUpper uBound keep the upper range. else uLower uBound bool..
|