public final class AlterOper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
Fill(IStreamable<T>[] x,
int first,
int last,
T value)
Assigns the same new value to every element in a specified
range.
|
static <T> int |
Fill(T[] x,
int first,
IFunc0Arg<Tuple2<T,java.lang.Boolean>> func)
Assigns the result of
func().first to every element in the
range starting with first, while func().second is true. |
static <T> void |
Fill(T[] x,
int first,
int last,
IFunc0Arg<T> func)
Assigns the values generated by a function object to each
element in a range.
|
static <T> int |
Fill(T[] x,
int first,
int n,
IFunc1Arg<java.lang.Integer,T> func,
int start)
Assigns the values generated by a function to a specified
number of elements in a range.
|
static <T> void |
Fill(T[] x,
int first,
int last,
T value)
Assigns the same new value to every element in a specified
range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
Fill(TOutIter first,
IFunc0Arg<Tuple2<T,java.lang.Boolean>> func)
Assigns the result of
func().first to every element in the
range starting with first, while func().second is true. |
static <T,TOutIter extends IOutIter<T,TOutIter>> |
Fill(TOutIter first,
long n,
IFunc0Arg<T> func)
Assigns the values generated by a function object to a specified
number of elements in a range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
Fill(TOutIter first,
long n,
IFunc1Arg<java.lang.Long,T> func,
long start)
Assigns the values generated by a function to a specified
number of elements in a range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
Fill(TOutIter first,
long n,
T value)
Assigns a new value to a specified number of elements in a
range beginning with a particular element.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
Fill(TOutIter first,
TOutIter last,
IFunc0Arg<T> func)
Assigns the values generated by a function object to each
element in a range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
Fill(TOutIter first,
TOutIter last,
T value)
Assigns the same new value to every element in a specified
range.
|
static <T> boolean |
IsUnique(T[] x,
int first,
int last)
Determines if the elements in a specified range that are
adjacent to each other are identical.
|
static <T> boolean |
IsUnique(T[] x,
int first,
int last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Determines if the elements in a specified range that are
adjacent to each other satisfy a predicate.
|
static <T,TInpIter extends IInpIter<T,TInpIter>> |
IsUnique(TInpIter first,
long n)
Determines if the elements in a specified range that are
adjacent to each other are identical.
|
static <T,TInpIter extends IInpIter<T,TInpIter>> |
IsUnique(TInpIter first,
long n,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Determines if the elements in a specified range that are
adjacent to each other satisfy a predicate.
|
static <T,TInpIter extends IInpIter<T,TInpIter>> |
IsUnique(TInpIter first,
TInpIter last)
Determines if the elements in a specified range that are
adjacent to each other are identical.
|
static <T,TInpIter extends IInpIter<T,TInpIter>> |
IsUnique(TInpIter first,
TInpIter last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Determines if the elements in a specified range that are
adjacent to each other satisfy a predicate.
|
static <T> void |
PFill(T[] x,
int first,
int last,
IFunc0Arg<T> func)
Parallel Fill: Assigns the values generated by a function object to each
element in a range.
|
static <T> void |
PFill(T[] x,
int first,
int last,
IFunc1Arg<java.lang.Integer,T> func)
Parallel Fill: Assigns the values generated by a function object to each
element in a range.
|
static <T> void |
PFill(T[] x,
int first,
int last,
T value)
Parallel Fill: Assigns the same new value to every element in a specified
range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
PFill(TOutIter first,
long n,
IFunc0Arg<T> func)
Parallel Fill: Assigns the values generated by a function object to a specified
number of elements in a range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
PFill(TOutIter first,
long n,
IFunc1Arg<java.lang.Long,T> func)
Parallel Fill: Assigns the values generated by a function to a specified
number of elements in a range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
PFill(TOutIter first,
long n,
T value)
Parallel Fill: Assigns a new value to a specified number of elements in a
range beginning with a particular element.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
PFill(TOutIter first,
TOutIter last,
IFunc0Arg<T> func)
Parallel Fill: Assigns the values generated by a function object to each
element in a range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
PFill(TOutIter first,
TOutIter last,
IFunc1Arg<java.lang.Long,T> func)
Parallel Fill: Assigns the values generated by a function to a specified
number of elements in a range.
|
static <T,TOutIter extends IOutIter<T,TOutIter>> |
PFill(TOutIter first,
TOutIter last,
T value)
Parallel Fill: Assigns the same new value to every element in a specified
range.
|
static <T> boolean |
PIsUnique(T[] x,
int first,
int last)
Parallel IsUnique: Determines if the elements in a specified range that are
adjacent to each other are identical.
|
static <T> boolean |
PIsUnique(T[] x,
int first,
int last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel IsUnique: Determines if the elements in a specified range that are
adjacent to each other satisfy a predicate.
|
static <T,TInpIter extends IInpIter<T,TInpIter>> |
PIsUnique(TInpIter first,
long n)
Parallel IsUnique: Determines if the elements in a specified range that are
adjacent to each other are identical.
|
static <T,TInpIter extends IInpIter<T,TInpIter>> |
PIsUnique(TInpIter first,
long n,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel IsUnique: Determines if the elements in a specified range that are
adjacent to each other satisfy a predicate.
|
static <T,TInpIter extends IInpIter<T,TInpIter>> |
PIsUnique(TInpIter first,
TInpIter last)
Parallel IsUnique: Determines if the elements in a specified range that are
adjacent to each other are identical.
|
static <T,TInpIter extends IInpIter<T,TInpIter>> |
PIsUnique(TInpIter first,
TInpIter last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel IsUnique: Determines if the elements in a specified range that are
adjacent to each other satisfy a predicate.
|
static <T> int |
PRemove(T[] x,
int first,
int last,
IPredicate<T> pred)
Parallel Remove: Eliminates elements that satisfy a predicate from a given
range without disturbing the order of the remaining elements.
|
static <T> int |
PRemove(T[] x,
int first,
int last,
T value)
Parallel Remove: Eliminates elements that are equal to a value from a given
range without disturbing the order of the remaining elements.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PRemove(TFwdIter first,
long n,
IPredicate<T> pred)
Parallel Remove: Eliminates elements that satisfy a predicate from a given
range without disturbing the order of the remaining elements.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PRemove(TFwdIter first,
long n,
T value)
Parallel Remove: Eliminates elements that are equal to a value from a given
range without disturbing the order of the remaining elements.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PRemove(TFwdIter first,
TFwdIter last,
IPredicate<T> pred)
Parallel Remove: Eliminates elements that satisfy a predicate from a given
range without disturbing the order of the remaining elements.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PRemove(TFwdIter first,
TFwdIter last,
T value)
Parallel Remove: Eliminates elements that are equal to a value from a given
range without disturbing the order of the remaining elements.
|
static <T> int |
PRemoveCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IPredicate<T> pred)
Parallel RemoveCopy: Copies elements from a source range to a destination range,
except elements that satisfy a predicate.
|
static <T> int |
PRemoveCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
T value)
Parallel RemoveCopy: Copies elements from a source range to a destination range,
except elements of a specified value.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PRemoveCopy(TInpIter first1,
long n,
TOutIter first2,
IPredicate<T> pred)
Parallel RemoveCopy: Copies elements from a source range to a destination range,
except elements that satisfy a predicate.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PRemoveCopy(TInpIter first1,
long n,
TOutIter first2,
T value)
Parallel RemoveCopy: Copies elements from a source range to a destination range,
except elements of a specified value.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PRemoveCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
IPredicate<T> pred)
Parallel RemoveCopy: Copies elements from a source range to a destination range,
except elements that satisfy a predicate.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PRemoveCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
T value)
Parallel RemoveCopy: Copies elements from a source range to a destination range,
except elements of a specified value.
|
static <T> void |
PReplace(T[] x,
int first,
int last,
IPredicate<T> pred,
T newValue)
Parallel Replace: Replaces every element that satisfies a predicate in a specified range.
|
static <T> void |
PReplace(T[] x,
int first,
int last,
T oldValue,
T newValue)
Parallel Replace: Replaces every element that matches a specified value in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PReplace(TFwdIter first,
long n,
IPredicate<T> pred,
T newValue)
Parallel Replace: Replaces every element that satisfies a predicate in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PReplace(TFwdIter first,
long n,
T oldValue,
T newValue)
Parallel Replace: Replaces every element that matches a specified value in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PReplace(TFwdIter first,
TFwdIter last,
IPredicate<T> pred,
T newValue)
Parallel Replace: Replaces every element that satisfies a predicate in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PReplace(TFwdIter first,
TFwdIter last,
T oldValue,
T newValue)
Parallel Replace: Replaces every element that matches a specified value in a specified range.
|
static <T> int |
PReplaceCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IPredicate<T> pred,
T newValue)
Parallel ReplaceCopy: Replaces every element that satisfies a predicate while copying
all elements from a source range into a new destination range.
|
static <T> int |
PReplaceCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
T oldValue,
T newValue)
Parallel ReplaceCopy: Replaces every element that matches a specified value while copying
all elements from a source range into a new destination range.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PReplaceCopy(TInpIter first1,
long n,
TOutIter first2,
IPredicate<T> pred,
T newValue)
Parallel ReplaceCopy: Replaces every element that satisfies a predicate while copying
all elements from a source range into a new destination range.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PReplaceCopy(TInpIter first1,
long n,
TOutIter first2,
T oldValue,
T newValue)
Parallel ReplaceCopy: Replaces every element that matches a specified value while copying
all elements from a source range into a new destination range.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PReplaceCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
IPredicate<T> pred,
T newValue)
Parallel ReplaceCopy: Replaces every element that satisfies a predicate while copying
all elements from a source range into a new destination range.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PReplaceCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
T oldValue,
T newValue)
Parallel ReplaceCopy: Replaces every element that matches a specified value while copying
all elements from a source range into a new destination range.
|
static <T> int |
PUnique(T[] x,
int first,
int last)
Parallel Unique: Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T> int |
PUnique(T[] x,
int first,
int last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel Unique: Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PUnique(TFwdIter first,
long n)
Parallel Unique: Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PUnique(TFwdIter first,
long n,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel Unique: Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PUnique(TFwdIter first,
TFwdIter last)
Parallel Unique: Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
PUnique(TFwdIter first,
TFwdIter last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel Unique: Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T> int |
PUniqueCopy(T[] x,
int first1,
int last1,
T[] y,
int first2)
Parallel UniqueCopy: Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T> int |
PUniqueCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel UniqueCopy: Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PUniqueCopy(TInpIter first1,
long n,
TOutIter first2)
Parallel UniqueCopy: Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PUniqueCopy(TInpIter first1,
long n,
TOutIter first2,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel UniqueCopy: Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PUniqueCopy(TInpIter first1,
TInpIter last1,
TOutIter first2)
Parallel UniqueCopy: Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
PUniqueCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Parallel UniqueCopy: Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T> int |
Remove(T[] x,
int first,
int last,
IPredicate<T> pred)
Eliminates elements that satisfy a predicate from a given
range without disturbing the order of the remaining elements.
|
static <T> int |
Remove(T[] x,
int first,
int last,
T value)
Eliminates elements that are equal to a value from a given
range without disturbing the order of the remaining elements.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Remove(TFwdIter first,
long n,
IPredicate<T> pred)
Eliminates elements that satisfy a predicate from a given
range without disturbing the order of the remaining elements.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Remove(TFwdIter first,
long n,
T value)
Eliminates elements that are equal to a value from a given
range without disturbing the order of the remaining elements.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Remove(TFwdIter first,
TFwdIter last,
IPredicate<T> pred)
Eliminates elements that satisfy a predicate from a given
range without disturbing the order of the remaining elements.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Remove(TFwdIter first,
TFwdIter last,
T value)
Eliminates elements that are equal to a value from a given
range without disturbing the order of the remaining elements.
|
static <T> int |
RemoveCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IPredicate<T> pred)
Copies elements from a source range to a destination range,
except elements that satisfy a predicate.
|
static <T> int |
RemoveCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
T value)
Copies elements from a source range to a destination range,
except elements of a specified value.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
RemoveCopy(TInpIter first1,
long n,
TOutIter first2,
IPredicate<T> pred)
Copies elements from a source range to a destination range,
except elements that satisfy a predicate.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
RemoveCopy(TInpIter first1,
long n,
TOutIter first2,
T value)
Copies elements from a source range to a destination range,
except elements of a specified value.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
RemoveCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
IPredicate<T> pred)
Copies elements from a source range to a destination range,
except elements that satisfy a predicate.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
RemoveCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
T value)
Copies elements from a source range to a destination range,
except elements of a specified value.
|
static <T> void |
Replace(T[] x,
int first,
int last,
IPredicate<T> pred,
T newValue)
Replaces every element that satisfies a predicate in a specified range.
|
static <T> void |
Replace(T[] x,
int first,
int last,
T oldValue,
T newValue)
Replaces every element that matches a specified value in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Replace(TFwdIter first,
long n,
IPredicate<T> pred,
T newValue)
Replaces every element that satisfies a predicate in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Replace(TFwdIter first,
long n,
T oldValue,
T newValue)
Replaces every element that matches a specified value in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Replace(TFwdIter first,
TFwdIter last,
IPredicate<T> pred,
T newValue)
Replaces every element that satisfies a predicate in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Replace(TFwdIter first,
TFwdIter last,
T oldValue,
T newValue)
Replaces every element that matches a specified value in a specified range.
|
static <T> int |
ReplaceCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IPredicate<T> pred,
T newValue)
Replaces every element that satisfies a predicate while copying
all elements from a source range into a new destination range.
|
static <T> int |
ReplaceCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
T oldValue,
T newValue)
Replaces every element that matches a specified value while copying
all elements from a source range into a new destination range.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
ReplaceCopy(TInpIter first1,
long n,
TOutIter first2,
IPredicate<T> pred,
T newValue)
Replaces every element that satisfies a predicate while copying
all elements from a source range into a new destination range.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
ReplaceCopy(TInpIter first1,
long n,
TOutIter first2,
T oldValue,
T newValue)
Replaces every element that matches a specified value while copying
all elements from a source range into a new destination range.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
ReplaceCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
IPredicate<T> pred,
T newValue)
Replaces every element that satisfies a predicate while copying
all elements from a source range into a new destination range.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
ReplaceCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
T oldValue,
T newValue)
Replaces every element that matches a specified value while copying
all elements from a source range into a new destination range.
|
static <T> int |
Unique(T[] x,
int first,
int last)
Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T> int |
Unique(T[] x,
int first,
int last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Unique(TFwdIter first,
long n)
Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Unique(TFwdIter first,
long n,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Unique(TFwdIter first,
TFwdIter last1)
Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T,TFwdIter extends IFwdIter<T,TFwdIter>> |
Unique(TFwdIter first,
TFwdIter last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Removes duplicate elements that are adjacent to each other
in a specified range.
|
static <T> int |
UniqueCopy(T[] x,
int first1,
int last1,
T[] y,
int first2)
Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T> int |
UniqueCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
UniqueCopy(TInpIter first1,
long n,
TOutIter first2)
Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
UniqueCopy(TInpIter first1,
long n,
TOutIter first2,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
UniqueCopy(TInpIter first1,
TInpIter last1,
TOutIter first2)
Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> |
UniqueCopy(TInpIter first1,
TInpIter last1,
TOutIter first2,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Copies elements from a source range into a destination range except
for duplicate elements that are adjacent to each other.
|
public static <T,TOutIter extends IOutIter<T,TOutIter>> void Fill(TOutIter first, TOutIter last, T value)
Remarks: The complexity is linear with the size of the range.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to be traversed.last - An output iterator addressing the position one
past the final element in the range to be traversed.value - The value to be assigned to elements in the range
[last, first).public static <T,TOutIter extends IOutIter<T,TOutIter>> TOutIter Fill(TOutIter first, long n, T value)
Remarks: The complexity is linear with the size of the range.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to be assigned the specified value.n - An integer type specifying the number of
elements to be assigned the value.value - The value to be assigned to elements in the
range [first, first + n).public static <T,TOutIter extends IOutIter<T,TOutIter>> void PFill(TOutIter first, TOutIter last, T value)
Remarks: The complexity is linear with the size of the range.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to be traversed.last - An output iterator addressing the position one
past the final element in the range to be traversed.value - The value to be assigned to elements in the range
[last, first).public static <T,TOutIter extends IOutIter<T,TOutIter>> TOutIter PFill(TOutIter first, long n, T value)
Remarks: The complexity is linear with the size of the range.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to be assigned the specified value.n - An integer type specifying the number of
elements to be assigned the value.value - The value to be assigned to elements in the
range [first, first + n).public static <T,TOutIter extends IOutIter<T,TOutIter>> void Fill(TOutIter first, TOutIter last, IFunc0Arg<T> func)
Remarks: The complexity is linear, with exactly (last – first) calls to the generator being required.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to which values are to be assigned.last - An output iterator addressing the position one past
the final element in the range to which values are to be assigned.func - A function object that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T,TOutIter extends IOutIter<T,TOutIter>> TOutIter Fill(TOutIter first, long n, IFunc0Arg<T> func)
Remarks: The complexity is linear, with exactly n calls to the generator being required.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to which values are to be assigned.n - An integer type specifying the number of elements
to be assigned a value by the generator function.func - A function object that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T,TOutIter extends IOutIter<T,TOutIter>> void PFill(TOutIter first, TOutIter last, IFunc0Arg<T> func)
Remarks: The complexity is linear, with exactly (last – first) calls to the generator being required.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to which values are to be assigned.last - An output iterator addressing the position one past
the final element in the range to which values are to be assigned.func - A function object that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T,TOutIter extends IOutIter<T,TOutIter>> TOutIter PFill(TOutIter first, long n, IFunc0Arg<T> func)
Remarks: The complexity is linear, with exactly n calls to the generator being required.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to which values are to be assigned.n - An integer type specifying the number of elements
to be assigned a value by the generator function.func - A function object that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T,TOutIter extends IOutIter<T,TOutIter>> TOutIter Fill(TOutIter first, IFunc0Arg<Tuple2<T,java.lang.Boolean>> func)
func().first to every element in the
range starting with first, while func().second is true.
Remarks: The complexity is linear with exactly the number of calls to the generator being required.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to which values are to be assigned.func - A function object that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T,TOutIter extends IOutIter<T,TOutIter>> TOutIter Fill(TOutIter first, long n, IFunc1Arg<java.lang.Long,T> func, long start)
Remarks: The complexity is linear with exactly the number of calls to the generator being required.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to which values are to be assigned.n - An integer type specifying the number of elements
to be assigned a value by the generator function.func - A function that is called with no arguments that
is used to generate the values to be assigned to each element in the range.start - The initial value of the first argument of the specified function.public static <T,TOutIter extends IOutIter<T,TOutIter>> void PFill(TOutIter first, TOutIter last, IFunc1Arg<java.lang.Long,T> func)
Remarks: The complexity is linear with exactly the number of calls to the generator being required.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to which values are to be assigned.last - An output iterator addressing the position one
past the final element in the range to be traversed.func - A function that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T,TOutIter extends IOutIter<T,TOutIter>> TOutIter PFill(TOutIter first, long n, IFunc1Arg<java.lang.Long,T> func)
Remarks: The complexity is linear with exactly the number of calls to the generator being required.
T - The type of elements in the specified range.TOutIter - The type of iterators in the specified range.first - An output iterator addressing the position of
the first element in the range to which values are to be assigned.n - An integer type specifying the number of elements
to be assigned a value by the generator function.func - A function that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T> void Fill(T[] x,
int first,
int last,
T value)
Remarks: The complexity is linear with the size of the range.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of
the first element in the range to be traversed.last - An integer addressing the position one
past the final element in the range to be traversed.value - The value to be assigned to elements in the range
[last, first).public static <T> void PFill(T[] x,
int first,
int last,
T value)
Remarks: The complexity is linear with the size of the range.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of
the first element in the range to be traversed.last - An integer addressing the position one
past the final element in the range to be traversed.value - The value to be assigned to elements in the range
[last, first).public static <T> void Fill(IStreamable<T>[] x, int first, int last, T value)
Remarks: The complexity is linear with the size of the range.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of
the first element in the range to be traversed.last - An integer addressing the position one
past the final element in the range to be traversed.value - The value to be assigned to elements in the range
[last, first).public static <T> void Fill(T[] x,
int first,
int last,
IFunc0Arg<T> func)
Remarks: The complexity is linear, with exactly (last – first) calls to the generator being required.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of
the first element in the range to which values are to be assigned.last - An integer addressing the position one past
the final element in the range to which values are to be assigned.func - A function object that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T> void PFill(T[] x,
int first,
int last,
IFunc0Arg<T> func)
Remarks: The complexity is linear, with exactly (last – first) calls to the generator being required.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of
the first element in the range to which values are to be assigned.last - An integer addressing the position one past
the final element in the range to which values are to be assigned.func - A function object that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T> int Fill(T[] x,
int first,
int n,
IFunc1Arg<java.lang.Integer,T> func,
int start)
Remarks: The complexity is linear, with exactly (last – first) calls to the generator being required.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of
the first element in the range to which values are to be assigned.n - An integer type specifying the number of elements
to be assigned a value by the generator function.func - A function that is called with no arguments that
is used to generate the values to be assigned to each element in the range.start - The initial value of the first argument of the specified function.public static <T> void PFill(T[] x,
int first,
int last,
IFunc1Arg<java.lang.Integer,T> func)
Remarks: The complexity is linear, with exactly (last – first) calls to the generator being required.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of
the first element in the range to which values are to be assigned.last - An integer addressing the position one past
the final element in the range to which values are to be assigned.func - A function object that is called with one argument that
is used to generate the values to be assigned to each element in the range.public static <T> int Fill(T[] x,
int first,
IFunc0Arg<Tuple2<T,java.lang.Boolean>> func)
func().first to every element in the
range starting with first, while func().second is true.
Remarks: The complexity is linear with exactly the number of calls to the generator being required.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of
the first element in the range to which values are to be assigned.func - A function object that is called with no arguments that
is used to generate the values to be assigned to each element in the range.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter Remove(TFwdIter first, TFwdIter last, T value)
Remarks: The complexity is linear; there are (last – first) comparisons for equality.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being removed.last - A forward iterator pointing to the position one past
the final element in the range from which elements are being removed.value - The value that is to be removed from the range.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter Remove(TFwdIter first, long n, T value)
Remarks: The complexity is linear; there are n comparisons for equality.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being removed.n - An integer type specifying the number of elements
in the range from which they are being removed.value - The value that is to be removed from the range.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter Remove(TFwdIter first, TFwdIter last, IPredicate<T> pred)
Remarks: The complexity is linear; there are (last – first) comparisons for equality.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being removed.last - A forward iterator pointing to the position one past
the final element in the range from which elements are being removed.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter Remove(TFwdIter first, long n, IPredicate<T> pred)
Remarks: The complexity is linear; there are n comparisons for equality.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being removed.n - An integer type specifying the number of elements
in the range from which they are being removed.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter PRemove(TFwdIter first, TFwdIter last, T value)
Remarks: The complexity is linear; there are (last – first) comparisons for equality.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being removed.last - A forward iterator pointing to the position one past
the final element in the range from which elements are being removed.value - The value that is to be removed from the range.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter PRemove(TFwdIter first, long n, T value)
Remarks: The complexity is linear; there are n comparisons for equality.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being removed.n - An integer type specifying the number of elements
in the range from which they are being removed.value - The value that is to be removed from the range.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter PRemove(TFwdIter first, TFwdIter last, IPredicate<T> pred)
Remarks: The complexity is linear; there are (last – first) comparisons for equality.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being removed.last - A forward iterator pointing to the position one past
the final element in the range from which elements are being removed.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter PRemove(TFwdIter first, long n, IPredicate<T> pred)
Remarks: The complexity is linear; there are n comparisons for equality.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being removed.n - An integer type specifying the number of elements
in the range from which they are being removed.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T> int Remove(T[] x,
int first,
int last,
T value)
Remarks: The complexity is linear; there are (last – first) comparisons for equality.
T - The type of elements in the specified range.x - The specified array.first - An integer pointing to the position of the
first element in the range from which elements are being removed.last - An integer pointing to the position one past
the final element in the range from which elements are being removed.value - The value that is to be removed from the range.public static <T> int Remove(T[] x,
int first,
int last,
IPredicate<T> pred)
Remarks: The complexity is linear; there are (last – first) comparisons for equality.
T - The type of elements in the specified range.x - The specified array.first - An integer pointing to the position of the
first element in the range from which elements are being removed.last - An integer pointing to the position one past
the final element in the range from which elements are being removed.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T> int PRemove(T[] x,
int first,
int last,
T value)
Remarks: The complexity is linear; there are (last – first) comparisons for equality.
T - The type of elements in the specified range.x - The specified array.first - An integer pointing to the position of the
first element in the range from which elements are being removed.last - An integer pointing to the position one past
the final element in the range from which elements are being removed.value - The value that is to be removed from the range.public static <T> int PRemove(T[] x,
int first,
int last,
IPredicate<T> pred)
Remarks: The complexity is linear; there are (last – first) comparisons for equality.
T - The type of elements in the specified range.x - The specified array.first - An integer pointing to the position of the
first element in the range from which elements are being removed.last - An integer pointing to the position one past
the final element in the range from which elements are being removed.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter RemoveCopy(TInpIter first1, TInpIter last1, TOutIter first2, T value)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the
first element in the range from which elements are being removed.last1 - An input iterator pointing to the position one past
the final element in the range from which elements are being removed.first2 - An output iterator addressing the position of the
first element in the destination range.value - The value that is to be removed from the range.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter RemoveCopy(TInpIter first1, long n, TOutIter first2, T value)
Remarks: The complexity is linear; there are n comparisons for equality.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the
first element in the range from which elements are being removed.n - An integer type specifying the number of elements
in the range from which they are being removed.first2 - An output iterator addressing the position of the
first element in the destination range.value - The value that is to be removed from the range.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter RemoveCopy(TInpIter first1, TInpIter last1, TOutIter first2, IPredicate<T> pred)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the
first element in the range from which elements are being removed.last1 - An input iterator pointing to the position one past
the final element in the range from which elements are being removed.first2 - An output iterator addressing the position of the
first element in the destination range.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter RemoveCopy(TInpIter first1, long n, TOutIter first2, IPredicate<T> pred)
Remarks: The complexity is linear; there are n comparisons for equality.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the
first element in the range from which elements are being removed.n - An integer type specifying the number of elements
in the range from which they are being removed.first2 - An output iterator addressing the position of the
first element in the destination range.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PRemoveCopy(TInpIter first1, TInpIter last1, TOutIter first2, T value)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the
first element in the range from which elements are being removed.last1 - An input iterator pointing to the position one past
the final element in the range from which elements are being removed.first2 - An output iterator addressing the position of the
first element in the destination range.value - The value that is to be removed from the range.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PRemoveCopy(TInpIter first1, long n, TOutIter first2, T value)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the
first element in the range from which elements are being removed.n - An integer type specifying the number of elements
in the range from which they are being removed.first2 - An output iterator addressing the position of the
first element in the destination range.value - The value that is to be removed from the range.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PRemoveCopy(TInpIter first1, TInpIter last1, TOutIter first2, IPredicate<T> pred)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the
first element in the range from which elements are being removed.last1 - An input iterator pointing to the position one past
the final element in the range from which elements are being removed.first2 - An output iterator addressing the position of the
first element in the destination range.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PRemoveCopy(TInpIter first1, long n, TOutIter first2, IPredicate<T> pred)
Remarks: The complexity is linear; there are n comparisons for equality.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the
first element in the range from which elements are being removed.n - An integer type specifying the number of elements
in the range from which they are being removed.first2 - An output iterator addressing the position of the
first element in the destination range.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T> int RemoveCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
T value)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the
first element in the range from which elements are being removed.last1 - An integer pointing to the position one past
the final element in the range from which elements are being removed.y - The specified output array.first2 - An integer addressing the position of the
first element in the destination range.value - The value that is to be removed from the range.public static <T> int RemoveCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IPredicate<T> pred)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the
first element in the range from which elements are being removed.last1 - An integer pointing to the position one past
the final element in the range from which elements are being removed.y - The specified output array.first2 - An integer addressing the position of the
first element in the destination range.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T> int PRemoveCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
T value)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the
first element in the range from which elements are being removed.last1 - An integer pointing to the position one past
the final element in the range from which elements are being removed.y - The specified output array.first2 - An integer addressing the position of the
first element in the destination range.value - The value that is to be removed from the range.public static <T> int PRemoveCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IPredicate<T> pred)
Remarks: The complexity is linear; there are (last1 – first1) comparisons for equality.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the
first element in the range from which elements are being removed.last1 - An integer pointing to the position one past
the final element in the range from which elements are being removed.y - The specified output array.first2 - An integer addressing the position of the
first element in the destination range.pred - The unary predicate that must be satisfied is the
value of an element that is to be removed.public static <T,TInpIter extends IInpIter<T,TInpIter>> boolean IsUnique(TInpIter first, TInpIter last)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.TInpIter - The type of iterators in the specified range.first - An input iterator addressing the position of the
first element in the range to be tested.last - An input iterator addressing the position one
past the final element in the range to be tested.public static <T,TInpIter extends IInpIter<T,TInpIter>> boolean IsUnique(TInpIter first, long n)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.TInpIter - The type of iterators in the specified range.first - An input iterator addressing the position of the
first element in the range to be tested.n - The number of elements in the specified range
to be tested.public static <T,TInpIter extends IInpIter<T,TInpIter>> boolean PIsUnique(TInpIter first, TInpIter last)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.TInpIter - The type of iterators in the specified range.first - An input iterator addressing the position of the
first element in the range to be tested.last - An input iterator addressing the position one
past the final element in the range to be tested.public static <T,TInpIter extends IInpIter<T,TInpIter>> boolean PIsUnique(TInpIter first, long n)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.TInpIter - The type of iterators in the specified range.first - An input iterator addressing the position of the
first element in the range to be tested.n - The number of elements in the specified range
to be tested.public static <T,TInpIter extends IInpIter<T,TInpIter>> boolean IsUnique(TInpIter first, TInpIter last, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.TInpIter - The type of iterators in the specified range.first - An input iterator addressing the position of the
first element in the range to be tested.last - An input iterator addressing the position one
past the final element in the range to be tested.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TInpIter extends IInpIter<T,TInpIter>> boolean IsUnique(TInpIter first, long n, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.TInpIter - The type of iterators in the specified range.first - An input iterator addressing the position of the
first element in the range to be tested.n - The number of elements in the specified range
to be tested.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TInpIter extends IInpIter<T,TInpIter>> boolean PIsUnique(TInpIter first, TInpIter last, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.TInpIter - The type of iterators in the specified range.first - An input iterator addressing the position of the
first element in the range to be tested.last - An input iterator addressing the position one
past the final element in the range to be tested.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TInpIter extends IInpIter<T,TInpIter>> boolean PIsUnique(TInpIter first, long n, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.TInpIter - The type of iterators in the specified range.first - An input iterator addressing the position of the
first element in the range to be tested.n - The number of elements in the specified range
to be tested.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T> boolean IsUnique(T[] x,
int first,
int last)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range to be tested.last - An integer addressing the position one
past the final element in the range to be tested.public static <T> boolean IsUnique(T[] x,
int first,
int last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range to be tested.last - An integer addressing the position one
past the final element in the range to be tested.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T> boolean PIsUnique(T[] x,
int first,
int last)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range to be tested.last - An integer addressing the position one
past the final element in the range to be tested.public static <T> boolean PIsUnique(T[] x,
int first,
int last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The ranges to be tested must be valid. The complexity is linear with the size of the range.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range to be tested.last - An integer addressing the position one
past the final element in the range to be tested.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter Unique(TFwdIter first, TFwdIter last1)
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator addressing the position of the
first element in the range to be scanned for duplicate removal.last1 - A forward iterator addressing the position one past
the final element in the range to be scanned for duplicate removal.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter Unique(TFwdIter first, long n)
Remarks: The complexity is linear, requiring n comparisons.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator addressing the position of the
first element in the range to be scanned for duplicate removal.n - An integer type specifying the number of elements
in the range to be scanned for duplicate removal.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter Unique(TFwdIter first, TFwdIter last, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator addressing the position of the
first element in the range to be scanned for duplicate removal.last - A forward iterator addressing the position one past
the final element in the range to be scanned for duplicate removal.pred - A user-defined predicate function object that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter Unique(TFwdIter first, long n, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator addressing the position of the
first element in the range to be scanned for duplicate removal.n - An integer type specifying the number of elements
in the range to be scanned for duplicate removal.pred - A user-defined predicate function object that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter PUnique(TFwdIter first, TFwdIter last)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator addressing the position of the
first element in the range to be scanned for duplicate removal.last - A forward iterator addressing the position one past
the final element in the range to be scanned for duplicate removal.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter PUnique(TFwdIter first, long n)
Remarks: The complexity is linear, requiring n comparisons.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator addressing the position of the
first element in the range to be scanned for duplicate removal.n - An integer type specifying the number of elements
in the range to be scanned for duplicate removal.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter PUnique(TFwdIter first, TFwdIter last, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator addressing the position of the
first element in the range to be scanned for duplicate removal.last - A forward iterator addressing the position one past
the final element in the range to be scanned for duplicate removal.pred - A user-defined predicate function object that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> TFwdIter PUnique(TFwdIter first, long n, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator addressing the position of the
first element in the range to be scanned for duplicate removal.n - An integer type specifying the number of elements
in the range to be scanned for duplicate removal.pred - A user-defined predicate function object that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T> int Unique(T[] x,
int first,
int last)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range to be scanned for duplicate removal.last - An integer addressing the position one past
the final element in the range to be scanned for duplicate removal.public static <T> int Unique(T[] x,
int first,
int last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range to be scanned for duplicate removal.last - An integer addressing the position one past
the final element in the range to be scanned for duplicate removal.pred - A user-defined predicate function object that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T> int PUnique(T[] x,
int first,
int last)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range to be scanned for duplicate removal.last - An integer addressing the position one past
the final element in the range to be scanned for duplicate removal.public static <T> int PUnique(T[] x,
int first,
int last,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last – first) comparisons.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range to be scanned for duplicate removal.last - An integer addressing the position one past
the final element in the range to be scanned for duplicate removal.pred - A user-defined predicate function object that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter UniqueCopy(TInpIter first1, TInpIter last1, TOutIter first2)
T - The type of elements in the specified ranges.
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the first
element in the source range to be copied.last1 - An input iterator addressing the position one past the
final element in the source range to be copied.first2 - An output iterator addressing the position of the first
element in the destination range.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter UniqueCopy(TInpIter first1, long n, TOutIter first2)
Remarks: The complexity is linear, requiring n comparisons.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the first
element in the source range to be copied.n - An integer type specifying the number of elements
in the range to be scanned for duplicate removal.first2 - An output iterator addressing the position of the first
element in the destination range.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter UniqueCopy(TInpIter first1, TInpIter last1, TOutIter first2, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the first
element in the source range to be copied.last1 - An input iterator addressing the position one past the
final element in the source range to be copied.first2 - An output iterator addressing the position of the first
element in the destination range.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter UniqueCopy(TInpIter first1, long n, TOutIter first2, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring n comparisons.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the first
element in the source range to be copied.n - An integer type specifying the number of elements
in the range to be scanned for duplicate removal.first2 - An output iterator addressing the position of the first
element in the destination range.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PUniqueCopy(TInpIter first1, TInpIter last1, TOutIter first2)
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the first
element in the source range to be copied.last1 - An input iterator addressing the position one past the
final element in the source range to be copied.first2 - An output iterator addressing the position of the first
element in the destination range.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PUniqueCopy(TInpIter first1, long n, TOutIter first2)
Remarks: The complexity is linear, requiring n comparisons.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the first
element in the source range to be copied.n - An integer type specifying the number of elements
in the range to be scanned for duplicate removal.first2 - An output iterator addressing the position of the first
element in the destination range.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PUniqueCopy(TInpIter first1, TInpIter last1, TOutIter first2, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the first
element in the source range to be copied.last1 - An input iterator addressing the position one past the
final element in the source range to be copied.first2 - An output iterator addressing the position of the first
element in the destination range.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PUniqueCopy(TInpIter first1, long n, TOutIter first2, IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring n comparisons.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator addressing the position of the first
element in the source range to be copied.n - An integer type specifying the number of elements
in the range to be scanned for duplicate removal.first2 - An output iterator addressing the position of the first
element in the destination range.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T> int UniqueCopy(T[] x,
int first1,
int last1,
T[] y,
int first2)
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the first
element in the source range to be copied.last1 - An integer addressing the position one past the
final element in the source range to be copied.y - The specified output array.first2 - An integer addressing the position of the first
element in the destination range.public static <T> int UniqueCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the first
element in the source range to be copied.last1 - An integer addressing the position one past the
final element in the source range to be copied.y - The specified output array.first2 - An integer addressing the position of the first
element in the destination range.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T> int PUniqueCopy(T[] x,
int first1,
int last1,
T[] y,
int first2)
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the first
element in the source range to be copied.last1 - An integer addressing the position one past the
final element in the source range to be copied.y - The specified output array.first2 - An integer addressing the position of the first
element in the destination range.public static <T> int PUniqueCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IFunc2Arg<T,T,java.lang.Boolean> pred)
Remarks: The complexity is linear, requiring (last1 – first1) comparisons.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the first
element in the source range to be copied.last1 - An integer addressing the position one past the
final element in the source range to be copied.y - The specified output array.first2 - An integer addressing the position of the first
element in the destination range.pred - A user-defined predicate function that defines the
condition to be satisfied if two elements are to be taken as equivalent.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> void Replace(TFwdIter first, TFwdIter last, T oldValue, T newValue)
Remarks: The complexity is linear; there are (last – first) comparisons for equality and at most (last – first) assignments of new values.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being replaced.last - A forward iterator pointing to the position one past
the final element in the range from which elements are being replaced.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with the
old value.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> void Replace(TFwdIter first, long n, T oldValue, T newValue)
Remarks: The complexity is linear; there are n comparisons for equality and at most n assignments of new values.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being replaced.n - The number of elements in the specified range.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with the
old value.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> void Replace(TFwdIter first, TFwdIter last, IPredicate<T> pred, T newValue)
Remarks: The complexity is linear; there are (last – first) comparisons for equality and at most (last – first) assignments of new values.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being replaced.last - A forward iterator pointing to the position one past
the final element in the range from which elements are being replaced.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements
whose old value satisfies the predicate.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> void Replace(TFwdIter first, long n, IPredicate<T> pred, T newValue)
Remarks: The complexity is linear; there are n comparisons for equality and at most n assignments of new values.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being replaced.n - The number of elements in the specified range.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements
whose old value satisfies the predicate.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> void PReplace(TFwdIter first, TFwdIter last, T oldValue, T newValue)
Remarks: The complexity is linear; there are (last – first) comparisons for equality and at most (last – first) assignments of new values.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being replaced.last - A forward iterator pointing to the position one past
the final element in the range from which elements are being replaced.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with the
old value.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> void PReplace(TFwdIter first, long n, T oldValue, T newValue)
Remarks: The complexity is linear; there are n comparisons for equality and at most n assignments of new values.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being replaced.n - The number of elements in the specified range.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with the
old value.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> void PReplace(TFwdIter first, TFwdIter last, IPredicate<T> pred, T newValue)
Remarks: The complexity is linear; there are (last – first) comparisons for equality and at most (last – first) assignments of new values.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being replaced.last - A forward iterator pointing to the position one past
the final element in the range from which elements are being replaced.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements
whose old value satisfies the predicate.public static <T,TFwdIter extends IFwdIter<T,TFwdIter>> void PReplace(TFwdIter first, long n, IPredicate<T> pred, T newValue)
Remarks: The complexity is linear; there are n comparisons for equality and at most n assignments of new values.
T - The type of elements in the specified range.TFwdIter - The type of iterators in the specified range.first - A forward iterator pointing to the position of the
first element in the range from which elements are being replaced.n - The number of elements in the specified range.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements
whose old value satisfies the predicate.public static <T> void Replace(T[] x,
int first,
int last,
T oldValue,
T newValue)
Remarks: The complexity is linear; there are (last – first) comparisons for equality and at most (last – first) assignments of new values.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range from which elements are being replaced.last - An integer addressing the position one past
the final element in the range from which elements are being replaced.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with the
old value.public static <T> void Replace(T[] x,
int first,
int last,
IPredicate<T> pred,
T newValue)
Remarks: The complexity is linear; there are (last – first) comparisons for equality and at most (last – first) assignments of new values.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range from which elements are being replaced.last - An integer addressing the position one past
the final element in the range from which elements are being replaced.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements
whose old value satisfies the predicate.public static <T> void PReplace(T[] x,
int first,
int last,
T oldValue,
T newValue)
Remarks: The complexity is linear; there are (last – first) comparisons for equality and at most (last – first) assignments of new values.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range from which elements are being replaced.last - An integer addressing the position one past
the final element in the range from which elements are being replaced.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with the
old value.public static <T> void PReplace(T[] x,
int first,
int last,
IPredicate<T> pred,
T newValue)
Remarks: The complexity is linear; there are (last – first) comparisons for equality and at most (last – first) assignments of new values.
T - The type of elements in the specified range.x - The specified array.first - An integer addressing the position of the
first element in the range from which elements are being replaced.last - An integer addressing the position one past
the final element in the range from which elements are being replaced.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements
whose old value satisfies the predicate.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter ReplaceCopy(TInpIter first1, TInpIter last1, TOutIter first2, T oldValue, T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are (last1 – first1) comparisons for equality and at most (last1 – first1) assignments of new values.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator pointing to the position of the
first element in the range from which elements are being replaced.last1 - An input iterator pointing to the position one past the
final element in the range from which elements are being replaced.first2 - An output iterator pointing to the position of the first
element in the destination range to which elements are being copied.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with
the old value.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter ReplaceCopy(TInpIter first1, long n, TOutIter first2, T oldValue, T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are n comparisons for equality and at most n assignments of new values.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator pointing to the position of the
first element in the range from which elements are being replaced.n - The number of elements in the specified ranges.first2 - An output iterator pointing to the position of the first
element in the destination range to which elements are being copied.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with
the old value.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter ReplaceCopy(TInpIter first1, TInpIter last1, TOutIter first2, IPredicate<T> pred, T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are (last1 – first1) comparisons for equality and at most (last1 – first1) assignments of new values.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator pointing to the position of the
first element in the range from which elements are being replaced.last1 - An input iterator pointing to the position one past the
final element in the range from which elements are being replaced.first2 - An output iterator pointing to the position of the first
element in the destination range to which elements are being copied.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements whose
old value satisfies the predicate.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter ReplaceCopy(TInpIter first1, long n, TOutIter first2, IPredicate<T> pred, T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are n comparisons for equality and at most n assignments of new values.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator pointing to the position of the
first element in the range from which elements are being replaced.n - The number of elements in the specified ranges.first2 - An output iterator pointing to the position of the first
element in the destination range to which elements are being copied.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements whose
old value satisfies the predicate.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PReplaceCopy(TInpIter first1, TInpIter last1, TOutIter first2, T oldValue, T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are (last1 – first1) comparisons for equality and at most (last1 – first1) assignments of new values.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator pointing to the position of the
first element in the range from which elements are being replaced.last1 - An input iterator pointing to the position one past the
final element in the range from which elements are being replaced.first2 - An output iterator pointing to the position of the first
element in the destination range to which elements are being copied.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with
the old value.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PReplaceCopy(TInpIter first1, long n, TOutIter first2, T oldValue, T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are n comparisons for equality and at most n assignments of new values.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator pointing to the position of the
first element in the range from which elements are being replaced.n - The number of elements in the specified ranges.first2 - An output iterator pointing to the position of the first
element in the destination range to which elements are being copied.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with
the old value.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PReplaceCopy(TInpIter first1, TInpIter last1, TOutIter first2, IPredicate<T> pred, T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are (last1 – first1) comparisons for equality and at most (last1 – first1) assignments of new values.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator pointing to the position of the
first element in the range from which elements are being replaced.last1 - An input iterator pointing to the position one past the
final element in the range from which elements are being replaced.first2 - An output iterator pointing to the position of the first
element in the destination range to which elements are being copied.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements whose
old value satisfies the predicate.public static <T,TInpIter extends IInpIter<T,TInpIter>,TOutIter extends IOutIter<T,TOutIter>> TOutIter PReplaceCopy(TInpIter first1, long n, TOutIter first2, IPredicate<T> pred, T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are n comparisons for equality and at most n assignments of new values.
T - The type of elements in the specified ranges.TInpIter - The type of iterators in the input range.TOutIter - The type of iterators in the output range.first1 - An input iterator pointing to the position of the
first element in the range from which elements are being replaced.n - The number of elements in the specified ranges.first2 - An output iterator pointing to the position of the first
element in the destination range to which elements are being copied.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements whose
old value satisfies the predicate.public static <T> int ReplaceCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
T oldValue,
T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are (last1 – first1) comparisons for equality and at most (last1 – first1) assignments of new values.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the
first element in the range from which elements are being replaced.last1 - An integer addressing the position one past the
final element in the range from which elements are being replaced.y - The specified output array.first2 - An integer addressing the position of the first
element in the destination range to which elements are being copied.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with
the old value.public static <T> int ReplaceCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IPredicate<T> pred,
T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are (last1 – first1) comparisons for equality and at most (last1 – first1) assignments of new values.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the
first element in the range from which elements are being replaced.last1 - An integer addressing the position one past the
final element in the range from which elements are being replaced.y - The specified output array.first2 - An integer addressing the position of the first
element in the destination range to which elements are being copied.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements whose
old value satisfies the predicate.public static <T> int PReplaceCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
T oldValue,
T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are (last1 – first1) comparisons for equality and at most (last1 – first1) assignments of new values.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the
first element in the range from which elements are being replaced.last1 - An integer addressing the position one past the
final element in the range from which elements are being replaced.y - The specified output array.first2 - An integer addressing the position of the first
element in the destination range to which elements are being copied.oldValue - The old value of the elements being replaced.newValue - The new value being assigned to the elements with
the old value.public static <T> int PReplaceCopy(T[] x,
int first1,
int last1,
T[] y,
int first2,
IPredicate<T> pred,
T newValue)
Remarks: The source and destination ranges referenced must not overlap and must both be valid. The complexity is linear: there are (last1 – first1) comparisons for equality and at most (last1 – first1) assignments of new values.
T - The type of elements in the specified ranges.x - The specified input array.first1 - An integer addressing the position of the
first element in the range from which elements are being replaced.last1 - An integer addressing the position one past the
final element in the range from which elements are being replaced.y - The specified output array.first2 - An integer addressing the position of the first
element in the destination range to which elements are being copied.pred - The unary predicate that must be satisfied is the
value of an element that is to be replaced.newValue - The new value being assigned to the elements whose
old value satisfies the predicate.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.