File indexing completed on 2024-04-06 12:01:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "IOVSyncValue.h"
0017
0018 namespace cond::hdf5 {
0019 std::vector<IOVSyncValue>::const_iterator findMatchingFirst(std::vector<IOVSyncValue> const& iIOVs,
0020 IOVSyncValue iMatch) {
0021 auto itFound = std::lower_bound(iIOVs.begin(), iIOVs.end(), iMatch);
0022 if (itFound == iIOVs.end() or iMatch < *itFound) {
0023
0024 if (itFound == iIOVs.begin()) {
0025 return iIOVs.end();
0026 }
0027 itFound -= 1;
0028 }
0029 return itFound;
0030 }
0031 }