nothing wrong with the one liner : 
```c++
return !is_done_pulling_records() && (m_sam_record_ptr.get()->core.tid == m_current_contig) && m_sam_record_ptr.get()->core.pos >= new_stop_position); 
```

:-)