putil

virtual class putil #(type T =  int)

virtual Provides a parameterized utility function.

Parameter

Toptional The type of function arguments.  The default is int.

See Also

util

Summary
putilvirtual Provides a parameterized utility function.
Functions
swapstatic Swaps two objects.

Functions

swap

static function void swap(ref T x,
ref T y)

static Swaps two objects.

Arguments

xAn object of type T.
yAnother object of type T.

Example

int x = 0;
int y = 1;
putil#(int)::swap( x, y );
assert( x == 1 );
assert( y == 0 );
virtual class putil #(type T =  int)
virtual Provides a parameterized utility function.
static function void swap(ref T x,
ref T y)
static Swaps two objects.
virtual class util
virtual Provides several utility functions.