MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / move_next

Method move_next

benchmarks/dlib/array/array_kernel.h:586–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584 typename mem_manager
585 >
586 bool array<T,mem_manager>::
587 move_next (
588 ) const
589 {
590 if (!_at_start)
591 {
592 if (pos < last_pos)
593 {
594 ++pos;
595 return true;
596 }
597 else
598 {
599 pos = 0;
600 return false;
601 }
602 }
603 else
604 {
605 _at_start = false;
606 if (array_size > 0)
607 {
608 pos = array_elements;
609 return true;
610 }
611 else
612 {
613 return false;
614 }
615 }
616 }
617
618// ----------------------------------------------------------------------------------------
619// ----------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected