PhoenixGraph
01.0.0
Set of tools to simplify graph manipulation
Loading...
Searching...
No Matches
list_index_utils_impl.h
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : CeCILL-C
5
****************************************/
6
7
#ifndef __LIST_INDEX_UTILS_IMPL_H__
8
#define __LIST_INDEX_UTILS_IMPL_H__
9
10
#include "
list_index_utils.h
"
11
13
16
template
<
typename
UIdx>
17
void
listindex_remove
(std::list<UIdx> & listIndex, UIdx index){
18
if
(listIndex.size() == 0lu){
return
;}
19
typename
std::list<UIdx>::iterator it(listIndex.begin());
20
while
(it != listIndex.end()){
21
if
(*it == index){
22
it = listIndex.erase(it);
23
}
else
{
24
++it;
25
}
26
}
27
}
28
29
#endif
30
31
list_index_utils.h
listindex_remove
void listindex_remove(std::list< UIdx > &listIndex, UIdx index)
Remove index from listIndex.
Definition
list_index_utils_impl.h:17
src
list_index_utils_impl.h
Generated by
1.13.2