|
|
|
|
|
|
|
|
|
|
|
|||||||
#include <cstring_range.hpp>
Inheritance diagram for cstring_range:

Public Types | |
| typedef C | value_type |
| The value type. | |
| typedef cstring_range< C > | class_type |
| The current parameterisation of the type. | |
| typedef value_type const * | const_pointer |
| The non-mutable (const) pointer type. | |
| typedef value_type const & | const_reference |
| The non-mutable (const) reference type. | |
Public Methods | |
| ss_bool_t | is_open () const |
| Indicates whether the range is open. | |
| const_reference | current () const |
| Returns the current value in the range. | |
| class_type & | advance () |
| Advances the current position in the range. | |
| operator boolean_type () const | |
| Indicates whether the range is open. | |
| const_reference | operator * () const |
| Returns the current value in the range. | |
| class_type & | operator++ () |
| Advances the current position in the range. | |
| class_type | operator++ (int) |
| Advances the current position in the range, returning a copy of the range prior to its being advanced. | |
Construction | |
| cstring_range (value_type const *s) | |
| Constructor. | |
| ~cstring_range () | |
| Destructor. | |
It is categoried as a Notional Range
It could be used as follows
// Create a range based on a C-string
stlsoft::cstring_range r("This is a literal string");
// Count the number of i's in the string
size_t num_Is = stlsoft::r_count(r, 'i');
|
|
The current parameterisation of the type.
|
|
|
The non-mutable (const) pointer type.
|
|
|
The non-mutable (const) reference type.
|
|
|
The value type.
|
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Advances the current position in the range.
|
|
|
Returns the current value in the range.
|
|
|
Indicates whether the range is open.
|
|
|
Returns the current value in the range.
|
|
|
Indicates whether the range is open.
|
|
|
Advances the current position in the range, returning a copy of the range prior to its being advanced.
|
|
|
Advances the current position in the range.
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |