Changeset 936 for trunk/yat/utility/Iterator.h
- Timestamp:
- Oct 6, 2007, 1:02:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/Iterator.h
r932 r936 29 29 #include <iterator> 30 30 #include <stddef.h> 31 #include <stdexcept> 31 32 32 33 namespace theplu { … … 65 66 */ 66 67 return_type operator*(void) const 67 { yat_assert (index_<container_->size());68 { yat_assert<std::out_of_range>(index_<container_->size()); 68 69 return container_->operator()(index_); } 69 70 … … 72 73 */ 73 74 return_type operator[](difference_type n) const 74 { yat_assert (index_+n < container_->size());75 { yat_assert<std::out_of_range>(index_+n < container_->size()); 75 76 return container_->operator()(index_+n); } 76 77
Note: See TracChangeset
for help on using the changeset viewer.