◆ begin()
| size_t tt::jsonpath_slice::begin |
( |
size_t | size | ) |
const |
|
inlinenoexcept |
Get the start offset.
- Parameters
-
| size | The size of the container. |
- Returns
- The start offset of the slice.
◆ end()
| size_t tt::jsonpath_slice::end |
( |
size_t | size | ) |
const |
|
inlinenoexcept |
Get the one-step beyond last offset.
This will calculate the last offset of an integer number of steps starting from begin(). This allows the end() to be equality compared inside a for loop, even when the step is negative.
- Parameters
-
| size | The size of the container. |
- Returns
- The one-step beyond last offset of the slice.
The documentation for this struct was generated from the following file: