Template Function cmesh_params::filled_vector

Function Documentation

template<typename T>
std::vector<T> cmesh_params::filled_vector(const size_t size, T start)

Creates a vector filled with sequentially increasing values.

Template Parameters:

T – The type of the vector elements.

Parameters:
  • size[in] The number of elements in the resulting vector.

  • start[in] The starting value for the sequence.

Returns:

A vector of type T containing sequential values starting from start.