Just before I have to implement my own.. I don't suppose the .NET
framework has an equivalent of the STL set_difference algorithm
yet...?
For e.g. If I have two containers: CompareSet={1,2,3} ToSet={2,3,4}
then diff(CompareSet,ToSet) = {4} and diff(ToSet,CompareSet) = {1}
Thanks,
Duncan 1 995
On Sep 14, 1:22 pm, Duncan Smith <DSmith1...@googlemail.comwrote:
Just before I have to implement my own.. I don't suppose the .NET
framework has an equivalent of the STL set_difference algorithm
yet...?
For e.g. If I have two containers: CompareSet={1,2,3} ToSet={2,3,4}
then diff(CompareSet,ToSet) = {4} and diff(ToSet,CompareSet) = {1}
Thanks,
Duncan
It's okay, just found Wintellect's Power Collections. Should bridge
the gap until stl.net arrives (hopfully in Orcas still?)
Regards,
Duncan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jasper Kent |
last post by:
I'm trying to do the equivalent of using typedefs with templates in C++ to
avoid long instantiation names.
I can do this okay:
using BigDictionary = System.Collections.Generic.Dictionary<int,...
|
by: KK |
last post by:
Hi,
I'm trying to come up with an efficient way to solve the following
problem.
Let A = { (1, b), (2, d), (3, a), (4, c) ,... }
B = { (1, d), (2, a), (3, e), (4, f),... }
where a,b,c......
|
by: KH |
last post by:
I can't seem to figure this one out... I've searched MSDN and Goog, and made
my best guesses to no avail,, so help would be much appreciated!
public ref class T sealed
: public...
|
by: sdilip519 |
last post by:
i am using maps with a string in the template argument and i want to
find the difference of two maps into another amp for this i can use the
set_difference function but the arguments of the...
|
by: tezheng |
last post by:
since std::map is some kind of std::set<std::pair>
can i use "set_difference" with std::map?
how to deal with the "operator =" of std::pair<T1, T2>, as T1 and T2 could
be various type.
|
by: gihope |
last post by:
Hi,
I wonder if someone could help me. I'm trying to develop a search algorithm as I need an engine that can determine the shortest route between two locations based on the number of stops.
I...
|
by: Fred Heida |
last post by:
Hi,
i'm trying to (using managed C++) implment the IEnumerable<Tinterface on
my class..
but have a problem with the 2 GetEnumerator method required.... what i have
done is...
...
|
by: Michi Henning |
last post by:
I can pass a generic collection as ICollection<Tjust fine:
static void flatCollection(ICollection<intc) {}
// ...
List<intl = new List<int>();
flatCollection(l); // Works fine
Now I...
|
by: SimonDotException |
last post by:
I am trying to use reflection in a property of a base type to inspect the properties of an instance of a type which is derived from that base type, when the properties can themselves be instances of...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |