Skip to content

Instantly share code, notes, and snippets.

@JohanMabille
Created January 7, 2020 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohanMabille/9cf6d1fcbfcd03dc5c127be7409bf9a3 to your computer and use it in GitHub Desktop.
Save JohanMabille/9cf6d1fcbfcd03dc5c127be7409bf9a3 to your computer and use it in GitHub Desktop.
template <class T, layout_type L, class A>
xarray<T, L, A>::xarray(nested_initializer_list_t<value_type, 2> s)
: xarray()
{
resize(shape<shape_type>(t));
L == layout_type::row_major
? nested_copy(m_storage_begin(), s)
: nested_copy(
this->template begin<layout_type::column_major>(),
s
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment