Main Content

matlab::data::Range<ItType,ElemType>

Templated C++ class to provide range-based operation support

Description

Range objects wrap begin and end functions to enable range-based operations.

Class Details

Namespace:

matlab::data

Include:

Range.hpp

Template Parameters

IteratorType

Iterator type

ElementType

Element type

Constructors

Constructor

Range(IteratorType<ElementType> begin, IteratorType<ElementType> end)

Description

Creates a Range object.

Parameters

IteratorType<ElementType> begin

IteratorType<ElementType> end

First and last elements of range.

Returns

Range

New instance.

Throws

None

Move Constructors

Range(Range&& rhs)

Description

Moves contents of a Range object to a new instance.

Parameters

Range&& rhs

Range to move.

Returns

Range

New instance.

Throws

None

Move Assignment Operators

Range& operator=(Range&& rhs)

Description

Assigns the input to this Range object.

Parameters

Range&& rhs

Range to move.

Returns

Range&

Updated instance.

Throws

None

begin

IteratorType<ElementType>& begin()

Returns

IteratorType<ElementType>&

First element in range.

Throws

None

end

IteratorType<ElementType>& end()

Returns

IteratorType<ElementType>&

End of range.

Throws

None

Version History

Introduced in R2017b