mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +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.
|
||||
+/
|
||||
@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;
|
||||
}
|
||||
|
@ -1650,7 +1650,7 @@ pure nothrow bool sameHead(T)(in T[] lhs, in T[] rhs)
|
|||
`false` otherwise.
|
||||
+/
|
||||
@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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue