Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #368 from broadinstitute/intel_individual_field_va…
Browse files Browse the repository at this point in the history
…lue_iterator_increment

Void return type for operator ++ and -- in IndividualFieldValueIterator
  • Loading branch information
Mauricio Carneiro committed Nov 8, 2014
2 parents 324e7e8 + a4ef26d commit a5187dc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gamgee/individual_field_value_iterator.h
Expand Up @@ -209,25 +209,21 @@ class IndividualFieldValueIterator : public std::iterator<std::random_access_ite
* @brief advances to the next sample
* @note mainly designed for iterators
* @warning does not check for bounds exception, you should verify whether or not you've reached the end by comparing the result of operator* with end(). This is the STL way.
* @return the next value in it's native type
*/
VALUE_TYPE operator++() noexcept {
void operator++() noexcept {
m_current_data_ptr += m_num_bytes;
m_is_current_pointee_cached = false;
m_current_data_ptr = utils::cache_and_advance_to_end_if_necessary(m_current_data_ptr, m_end_data_ptr, *this);
return convert_from_byte_array(m_current_data_ptr, 0);
}

/**
* @brief advances to the previous sample
* @note mainly designed for iterators
* @warning does not check for bounds exception, you should verify whether or not you've reached the end by comparing the result of operator* with end(). This is the STL way.
* @return the previous value in it's native type
*/
VALUE_TYPE operator--() {
void operator--() {
m_current_data_ptr -= m_num_bytes;
m_is_current_pointee_cached = false;
return convert_from_byte_array(m_current_data_ptr, 0);
}

/**
Expand Down

0 comments on commit a5187dc

Please sign in to comment.