My Project
|
Random access range of string values. More...
#include <UDQConfig.hpp>
Public Types | |
using | Iter = std::vector< std::string >::const_iterator |
Random access iterator. | |
Public Member Functions | |
StringRange ()=default | |
Default constructor. | |
StringRange (Iter first, Iter last) | |
Constructor. | |
auto | begin () const |
Beginning of range's elements. | |
auto | end () const |
End of range's elements. | |
std::vector< std::string > | asVector () const |
Convert value range to a std::vector. | |
Random access range of string values.
Poor-man's substitute for C++20's std::span<std::string>.
using Opm::UDQConfig::DynamicSelector::StringRange::Iter = std::vector<std::string>::const_iterator |
Random access iterator.
Class StringRange assumes that the underlying sequence is a std::vector<std::string> of sufficient lifetime.
|
default |
Default constructor.
Creates an empty range.
Constructor.
Forms a StringRange object from an iterator range.
[in] | first | First element in range. |
[in] | last | One past the end of the elements in the range. |
|
inline |
Convert value range to a std::vector.
Copies elements.