Go to the documentation of this file.
30 template<
class T,
class Addr>
37 const label len = addr_.size();
39 if (
start >= 0 && len)
45 if (vals[addr_[i]] ==
val)
56 template<
class T,
class Addr>
65 const label len1 = (addr_.size()-1);
68 for (
label i = ((
pos >= 0 &&
pos < len1) ?
pos : len1); i >= 0; --i)
70 if (vals[addr_[i]] ==
val)
label ListType::const_reference val
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define List_CONST_ACCESS(type, f, fp)
label ListType::const_reference const label start
label find(const T &val, const label start=0) const
Find index of the first occurrence of the value.
label rfind(const T &val, const label pos=-1) const
Find index of the last occurrence of the value.
dimensionedScalar pos(const dimensionedScalar &ds)