30template<
class T,
class Addr>
37 const label len = addr_.size();
45 if (vals[addr_[
pos]] == val)
58template<
class T,
class Addr>
67 if (pos < 0 || pos >= addr_.size())
76 if (vals[addr_[
pos]] == val)
#define List_CONST_ACCESS(type, f, fp)
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) const
Find index of the first occurrence of the value.
dimensionedScalar pos(const dimensionedScalar &ds)