Skip to content

Instantly share code, notes, and snippets.

@JohanMabille
Created December 28, 2019 22:20
Show Gist options
  • Save JohanMabille/c8b6bbf1aea3e9aa6b3fffce29249fed to your computer and use it in GitHub Desktop.
Save JohanMabille/c8b6bbf1aea3e9aa6b3fffce29249fed to your computer and use it in GitHub Desktop.
template <class T, class A = std::allocator<T>>
class xarray
{
public:
// ... as before
private:
shape_type m_shape;
std::vector<std::vector<T>> m_data;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment