Changeset 936 for trunk/yat/utility/IteratorWeighted.h
- Timestamp:
- Oct 6, 2007, 1:02:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/IteratorWeighted.h
r916 r936 8 8 #include <iterator> 9 9 #include <stddef.h> 10 #include <stdexcept> 10 11 11 12 namespace theplu { … … 45 46 return_type operator*(void) const 46 47 { 47 yat_assert (index_<container_->size());48 yat_assert<std::out_of_range>(index_<container_->size()); 48 49 return container_->operator()(index_); 49 50 } … … 53 54 */ 54 55 return_type data(void) const 55 { yat_assert(index_<container_->size()); return container_->data(index_); } 56 { yat_assert<std::out_of_range>(index_<container_->size()); 57 return container_->data(index_); } 56 58 57 59 /** … … 59 61 */ 60 62 return_type weight(void) const 61 { yat_assert(index_<container_->size());return container_->weight(index_); } 63 { yat_assert<std::out_of_range>(index_<container_->size()); 64 return container_->weight(index_); } 62 65 63 66
Note: See TracChangeset
for help on using the changeset viewer.