acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
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
7
template
<
typename
BASE_ITERATOR_TYPE >
8
constexpr ::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
iterator
Definition
std_iterator.h:49
prototype
collection
_list_iterator.h
Generated by
1.17.0