//----------------------------------------------------------------- //! //! \brief iterator to first element //! //! Returns a non-const iterator to the first element in the array. //! \return iterator to first element //! iterator begin() { return _data.begin(); }
//----------------------------------------------------------------- //! //! \brief const-iterator to first element //! //! Returns a const-iterator to the first element in the array. //! \return iterator to first element //! const_iterator begin() const { return _data.begin(); }
explicit mdarray(const array_view<ATYPE> &view): _imap(map_utils<map_type>::create(view.template shape<shape_t>())), _data(container_utils<storage_type>::create(view.size())) { std::copy(view.begin(),view.end(),_data.begin()); }