BOSS 7.0.5
BESIII Offline Software System
|
Classes | |
struct | DeleteArray |
struct | DeleteObject |
struct | PtrLess |
Functions | |
template<class C , class T > | |
C::difference_type | findIndex (const C &container, const T &value) |
C::difference_type bes::Collection::findIndex | ( | const C & | container, |
const T & | value | ||
) |
Determines the offset of the first occurrence of a specified value in a container. This is not an STL-ish way to work; the use of std::find() and iterators instead of offsets is strongly preferred, even for vectors.
This function is supplied only as a migration aid for previous users of the Rogue Wave vector classes.
It is valid for any container type C for whose iterators operator- is defined. When a restriction in the STL supplied by RW for Sun is removed in the future (see below), it could be rewritten to work for all containers.
Definition at line 75 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/BesCollectionUtils.h.