Pods/Realm/include/realm/column.hpp
inline size_t Column::find_gte(int64_t target, size_t start) const
{
    // fixme: slow reference implementation. See Array::FindGTE for faster version
    size_t ref = 0;
    size_t idx;
    for (idx = start; idx < size(); ++idx) {
        if (get(idx) >= target) {
            ref = idx;
            break;
        }
    }
    if (idx == size())
        ref = not_found;

    return ref;
}
// For a *sorted* Column, return first element E for which E >= target or return -1 if none
For a *sorted* Column, return first element E for which E >= target or return -1 if none
For a * sorted * Column return first element E for which E > = target or return - 1 if none
inline size_t Column::find_gte(int64_t target, size_t start) const
{
    size_t ref = 0;
    size_t idx;
    for (idx = start; idx < size(); ++idx) {
        if (get(idx) >= target) {
            ref = idx;
            break;
        }
    }
    if (idx == size())
        ref = not_found;
    return ref;
}
inline size_t Column :: find_gte ( int64_t target , size_t start ) const { size_t ref = 0 ; size_t idx ; for ( idx = start ; idx < size ( ) ; ++ idx ) { if ( get ( idx ) >= target ) { ref = idx ; break ; } } if ( idx == size ( ) ) ref = not_found ; return ref ; }
For a *sorted* Column, return first element E for which E >= target or return -1 if none
For a * sorted * Column return first element E for which E > = target or return - 1 if none
// fixme: slow reference implementation. See Array::FindGTE for faster version