3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00

arrays : add cbegin

This commit is contained in:
Olivier Parcollet 2013-09-02 21:25:21 +02:00
parent e7f619ac94
commit 7c758ede0d

View File

@ -277,6 +277,8 @@ namespace triqs { namespace arrays {
typedef iterator_adapter<false,typename IndexMapType::iterator, StorageType> iterator;
const_iterator begin() const {return const_iterator(indexmap(),storage(),false);}
const_iterator end() const {return const_iterator(indexmap(),storage(),true);}
const_iterator cbegin() const {return const_iterator(indexmap(),storage(),false);}
const_iterator cend() const {return const_iterator(indexmap(),storage(),true);}
iterator begin() {return iterator(indexmap(),storage(),false);}
iterator end() {return iterator(indexmap(),storage(),true);}