acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_list_iterator.h
1//
2// Created by camilo on 23/12/2022 01:57 <3ThomasBorregaardSorensen!!
3//
4#pragma once
5
6
7template < typename BASE_ITERATOR_TYPE >
8constexpr ::collection::count make_list_iterator < BASE_ITERATOR_TYPE >::operator - (const_iterator iterator) const
9{
10
11 ::collection::count c;
12
13 if (difference(c, *this, iterator))
14 {
15
16 return c;
17
18 }
19
20 if (difference(c, iterator, *this))
21 {
22
23 return -c;
24
25 }
26
27 throw_exception(error_failed, "iterators aren't from same list_base");
28
29 return -1;
30
31}
32
33
34
Definition std_iterator.h:49