#include <stlsoft/string/string_tokeniser.hpp>
This traits class has three responsibilities. First, it defines a number of member types that are used by the string_tokeniser and string_tokeniser::iterator classes: value_type, const_iterator_type.
Second, it provides a means by which the iterators of the string_tokeniser specialisation's string type can be elicited, by defining the (static) methods begin() and end().
Third, it provides a means by which an instance of the string_tokeniser specialisation's value type can be constructed from a pair of iterator of the string type, by defining the (static) create() method.
S | The string tokeniser string type | |
V | The string tokeniser value type |
Member Types | |
typedef S::value_type | value_type |
The value type. | |
typedef S::const_iterator | const_iterator_type |
The non-mutable (const) iterator type. | |
Static Public Member Functions | |
Operations | |
static const_iterator_type | begin (string_type const &s) |
Returns the start of the contained sequence of the given string. | |
static const_iterator_type | end (string_type const &s) |
Returns the end of the contained sequence of the given string. | |
static tokeniser_value_type | create (const_iterator_type f, const_iterator_type t) |
Creates an instance of the string from the given range [f:t). |
typedef S::value_type value_type |
The value type.
typedef S::const_iterator const_iterator_type |
The non-mutable (const) iterator type.
static const_iterator_type begin | ( | string_type const & | s | ) | [inline, static] |
Returns the start of the contained sequence of the given string.
static const_iterator_type end | ( | string_type const & | s | ) | [inline, static] |
Returns the end of the contained sequence of the given string.
static tokeniser_value_type create | ( | const_iterator_type | f, | |
const_iterator_type | t | |||
) | [inline, static] |