projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b4eea8
)
[iter] Make hb_fill() take collection type, not iter
author
Behdad Esfahbod
<behdad@behdad.org>
Fri, 21 Dec 2018 21:04:38 +0000
(16:04 -0500)
committer
Behdad Esfahbod
<behdad@behdad.org>
Fri, 21 Dec 2018 21:04:38 +0000
(16:04 -0500)
Starting to get the hang of when take which.
src/test-iter.cc
patch
|
blob
|
history
diff --git
a/src/test-iter.cc
b/src/test-iter.cc
index
f54bf0a
..
73af4e4
100644
(file)
--- a/
src/test-iter.cc
+++ b/
src/test-iter.cc
@@
-60,10
+60,10
@@
struct some_array_t
};
-template <typename
I
, typename V> inline void
-hb_fill (
hb_iter_t<I> &i
, const V &v)
+template <typename
C
, typename V> inline void
+hb_fill (
const C& c
, const V &v)
{
- for (; i; i++)
+ for (
typename C::iter_t i (c)
; i; i++)
hb_assign (*i, v);
}