mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 23:50:31 +03:00
Completed attribute lithany on sameTail
and sameHead
This commit is contained in:
parent
139a227da5
commit
ee836dd748
1 changed files with 2 additions and 2 deletions
|
@ -1622,7 +1622,7 @@ private template isInputRangeOrConvertible(E)
|
||||||
`true` if $(D lhs.ptr == rhs.ptr), `false` otherwise.
|
`true` if $(D lhs.ptr == rhs.ptr), `false` otherwise.
|
||||||
+/
|
+/
|
||||||
@safe
|
@safe
|
||||||
pure nothrow bool sameHead(T)(in T[] lhs, in T[] rhs)
|
pure nothrow @nogc bool sameHead(T)(in T[] lhs, in T[] rhs)
|
||||||
{
|
{
|
||||||
return lhs.ptr == rhs.ptr;
|
return lhs.ptr == rhs.ptr;
|
||||||
}
|
}
|
||||||
|
@ -1650,7 +1650,7 @@ pure nothrow bool sameHead(T)(in T[] lhs, in T[] rhs)
|
||||||
`false` otherwise.
|
`false` otherwise.
|
||||||
+/
|
+/
|
||||||
@trusted
|
@trusted
|
||||||
pure nothrow bool sameTail(T)(in T[] lhs, in T[] rhs)
|
pure nothrow @nogc bool sameTail(T)(in T[] lhs, in T[] rhs)
|
||||||
{
|
{
|
||||||
return lhs.ptr + lhs.length == rhs.ptr + rhs.length;
|
return lhs.ptr + lhs.length == rhs.ptr + rhs.length;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue