51 template<
class StringType>
54 public std::vector<std::sub_match<typename StringType::const_iterator>>
62 typename std::sub_match<typename StringType::const_iterator>;
66 typename StringType::const_iterator;
83 for (
const auto& elem : *
this)
94 const typename StringType::const_iterator&
b,
95 const typename StringType::const_iterator&
e 101 range.matched =
true;
103 this->push_back(
range);
108 auto first() const -> decltype(this->front())
110 return this->front();
115 auto last() const -> decltype(this->back())
121 StringType
str(
size_t pos)
const 123 return (*
this)[
pos].str();
typename std::sub_match< typename StringType::const_iterator > value_type
The element type.
auto first() const -> decltype(this->front())
Const reference to the first element, for consistency with other OpenFOAM containers.
std::string::size_type length() const
The total string length of all sub-elements.
dimensionedScalar pos(const dimensionedScalar &ds)
const dimensionedScalar e
Elementary charge.
StringType str(size_t pos) const
Get element at pos, converted to a string type.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
graph_traits< Graph >::vertices_size_type size_type
auto last() const -> decltype(this->back())
Const reference to the last element, for consistency with other OpenFOAM containers.
void append(const typename StringType::const_iterator &b, const typename StringType::const_iterator &e)
Append sub-string defined by begin/end iterators.
typename StringType::const_iterator string_iterator
The const_iterator for the underlying string type.
SubStrings()=default
Default construct.