Swap toHostOrder template parameters
This commit is contained in:
parent
b458250ad7
commit
bc2a6d2703
@ -298,14 +298,14 @@ version (PlattformUnittest)
|
|||||||
* failure will be caused.
|
* failure will be caused.
|
||||||
*
|
*
|
||||||
* Params:
|
* Params:
|
||||||
* R = Range type.
|
|
||||||
* T = Desired return type.
|
* T = Desired return type.
|
||||||
|
* R = Range type.
|
||||||
* range = Input range.
|
* range = Input range.
|
||||||
*
|
*
|
||||||
* Returns: Integral representation of $(D_PARAM range) with the host byte
|
* Returns: Integral representation of $(D_PARAM range) with the host byte
|
||||||
* order.
|
* order.
|
||||||
*/
|
*/
|
||||||
T toHostOrder(R, T = size_t)(R range)
|
T toHostOrder(T = size_t, R)(R range)
|
||||||
if (isInputRange!R
|
if (isInputRange!R
|
||||||
&& !isInfinite!R
|
&& !isInfinite!R
|
||||||
&& is(Unqual!(ElementType!R) == ubyte)
|
&& is(Unqual!(ElementType!R) == ubyte)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user