Lines Matching refs:Expects
20 #include <gsl/gsl_assert> // for Expects
37 // turn off some warnings that are noisy about our Expects statements
157 Expects(index_ != span_->size());
163 Expects(index_ != span_->size());
169 Expects(0 <= index_ && index_ != span_->size());
183 Expects(index_ != 0 && index_ <= span_->size());
208 Expects((index_ + n) >= 0 && (index_ + n) <= span_->size());
223 Expects(span_ == rhs.span_);
265 Expects(lhs.span_ == rhs.span_ // range spans have to match
272 Expects((index_ + n) >= 0 && (index_ + n) <= span_->size());
318 Expects(ext.size() == Ext);
321 constexpr extent_type(index_type size) { Expects(size == Ext); }
336 explicit constexpr extent_type(index_type size) : size_(size) { Expects(size >= 0); }
457 Expects(Count >= 0 && Count <= size());
465 Expects(Count >= 0 && size() - Count >= 0);
474 Expects((Offset >= 0 && size() - Offset >= 0) &&
482 Expects(count >= 0 && count <= size());
509 Expects(CheckRange(idx, storage_.size()));
592 Expects(ExtentType::size() >= 0);
598 Expects(ExtentType::size() >= 0);
599 Expects(data || ExtentType::size() == 0);
631 Expects(offset >= 0 && size() - offset >= 0);
635 Expects(count >= 0 && size() - offset >= count);