Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
imports
/
ice10857a.d
blob: afafc39f35f9031fe956260104891d398a149a86 [
file
] [
log
] [
blame
]
module
imports
.
ice10857a
;
template
filter
(
alias
pred
)
{
auto
filter
(
Range
)(
Range
rs
)
{
return
FilterResult
!(
pred
,
Range
)(
rs
);
}
}
private
struct
FilterResult
(
alias
pred
,
R
)
{
R _input
;
void
popFront
()
{
assert
(
pred
(
_input
[
0
])
==
123
);
}
}