mirror of
https://github.com/triqs/dft_tools
synced 2024-12-26 14:23:38 +01:00
arrays : add cbegin
This commit is contained in:
parent
e7f619ac94
commit
7c758ede0d
@ -277,6 +277,8 @@ namespace triqs { namespace arrays {
|
|||||||
typedef iterator_adapter<false,typename IndexMapType::iterator, StorageType> iterator;
|
typedef iterator_adapter<false,typename IndexMapType::iterator, StorageType> iterator;
|
||||||
const_iterator begin() const {return const_iterator(indexmap(),storage(),false);}
|
const_iterator begin() const {return const_iterator(indexmap(),storage(),false);}
|
||||||
const_iterator end() const {return const_iterator(indexmap(),storage(),true);}
|
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 begin() {return iterator(indexmap(),storage(),false);}
|
||||||
iterator end() {return iterator(indexmap(),storage(),true);}
|
iterator end() {return iterator(indexmap(),storage(),true);}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user