Template Function blackbird::_array

Function Documentation

template<typename T>
T blackbird::_array(Visitor *V, blackbirdParser::ArrayvarContext *ctx, T array)

Helper function for iterating through a Blackbird array, and storing the result in a C++ vector container.

Return
returns 0 to indicate successful visitation
Parameters
  • V: the Blackbird visitor
  • ctx: ArrayvarContext
  • array: empty vector to store the Blackbird array in