Created
January 7, 2020 10:11
-
-
Save JohanMabille/9cf6d1fcbfcd03dc5c127be7409bf9a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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