PrevUpHomeNext

Concept Segmenter

Segmenter

Description

A Segmenter is a type grouping two functions that read a certain number of elements off a range, hence making it a facility to segment a range.

Associated types

  • input_type

    Segmenter::input_type

    The type of elements the segmenters segments.

Notation

Segmenter
A type playing the role of model of Segmenter in the Segmenter concept.
In
A type playing the role of model of Bidirectional Iterator with elements convertible to input_type in the Segmenter concept.
c
Object of type Segmenter
pos
Object of type In
next
Object of type In&

Valid expressions

Name Expression Type Precondition Semantics

Construction

Segmenter()

Segmenter

 

Construct an instance of the type with default parameters.

Left to right

c.ltr(next, pos)

void

next != pos

Reads part of the [next, pos[ range left to right, modifying next as it advances.

Right to left

c.rtl(pos, next)

void

pos != next

Reads part of the [pos, next[ range right to left, modifying next as it advances.

Models

  • boost::boundary_segmenter<BoundaryChecker>, boost::unicode::combiner

PrevUpHomeNext