예제 #1
0
 //-----------------------------------------------------------------
 //! 
 //! \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(); }
예제 #2
0
 //-----------------------------------------------------------------
 //! 
 //! \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(); }
예제 #3
0
 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());
 }