30 template<
class T,
class Addr>
38 if (
pos >= 0 &&
pos < addr_.size())
43 if (len > 0) len +=
pos;
44 if (len < 0 || len > addr_.size())
49 const T*
const vals = values_.begin();
53 if (vals[addr_[
pos]] == val)
66 template<
class T,
class Addr>
75 if (pos < 0 || pos >= addr_.size())
80 const T*
const vals = values_.begin();
84 if (vals[addr_[
pos]] == val)
label rfind(const T &val, label pos=-1) const
Find index of the last occurrence of the value.
label find(const T &val, label pos=0, label len=-1) const
Find index of the first occurrence of the value.
dimensionedScalar pos(const dimensionedScalar &ds)