MCPcopy Create free account
hub / github.com/bitfieldaudio/OTTO / difference

Method difference

src/util/iterator.hpp:604–612  ·  view source on GitHub ↗

The real numeric difference between this and `rhs`. Only avaliable if `wrapped_type` is random access.

Source from the content-addressed store, hash-verified

602 ///
603 /// Only avaliable if `wrapped_type` is random access.
604 auto difference(const float_step_iterator& rhs) ->
605 std::enable_if_t<std::is_same_v<
606 typename std::iterator_traits<
607 wrapped_type>::iterator_category,
608 std::random_access_iterator_tag>,
609 float>
610 {
611 return (iter - rhs.iter) + (error() - rhs.error());
612 }
613
614 /*
615 * Member Variables

Callers

nothing calls this directly

Calls 2

errorFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected