【发布时间】:2015-08-15 12:25:36
【问题描述】:
此代码来自Phobos的源代码。
// This template simply aliases itself to R and is useful for consistency in
// generic code.
template Take(R)
if (isInputRange!(Unqual!R) &&
((!isInfinite!(Unqual!R) && hasSlicing!(Unqual!R)) || is(R T == Take!T)))
{
alias Take = R;
}
但它是什么意思/它做什么/什么时候有用?
【问题讨论】: