matlab::data::apply_visitor
Call Visitor class on arrays
Description
auto apply_visitor(Array a, V visitor)
dispatch to visitor class
operations based on array type.
Use apply_visitor
to pass in an instance of Array or one of its
subclasses and a visitor functor, and invoke the operator() method, which must be
defined in the user-defined functor, with the appropriate concrete array type.
Include
Namespace: | matlab::data |
Include | ArrayVisitors.hpp |
Parameters
| The
|
visitor class V&& | The user-supplied visitor object, passed:
|
Return Value
|
Outputs returned by the visitor. |
Version History
Introduced in R2017b