30 template<
class T,
class Addr>
37 const label len = addr_.size();
41 const T*
const vals = values_.begin();
45 if (vals[addr_[
pos]] == val)
58 template<
class T,
class Addr>
67 if (pos < 0 || pos >= addr_.size())
72 const T*
const vals = values_.begin();
76 if (vals[addr_[
pos]] == val)
label rfind(const T &val, label pos=-1) const
Find index of the last occurrence of the value.
dimensionedScalar pos(const dimensionedScalar &ds)
label find(const T &val, label pos=0) const
Find index of the first occurrence of the value.