stride_functor< X >

Description

Computes the stride of a vector of type X. This functor is used to implement stride().

The added value of the stride_functor is that it can be extended to any value-type that one might want to use in glas.

Example

Definition

Defined in stride.hpp

Template parameters

ParameterDescriptionDefault
Xtype of stride_functor's argument.

Model of

AdaptableUnaryFunction

Type requirements

Public base classes

Members

MemberWhere definedComment
argument_type AdaptableUnaryFunction
result_type AdaptableUnaryFunction
result_type operator() (const X& a) const UnaryFunction