473,326 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

USL v.s. STL

Hi,

We have software built on USL and are migrating to IBM VisualAge STL.
Can someone tell me the major difference between the two? Is the "Block" in
USL the same as "vector" in STL?

Thanks,
Steve
Jul 22 '05 #1
13 1738
"Steve" <st*************@yahoo.com> wrote in message
news:b9**************************@posting.google.c om...
Hi,

We have software built on USL and are migrating to IBM VisualAge STL.
Can someone tell me the major difference between the two? Is the "Block" in USL the same as "vector" in STL?


The difference is that 'USL' is not part of standard C++
and 'STL' is a (informal) term used to refer to the
contanier/iterator/algorithm parts of the C++ standard
library. 'STL' issues are topical here, 'USL' issues are
not.

-Mike
P.S. To me, the acronym 'USL' only means "University
of Southwest Louisiana" at Lafayette (although the
school has since been renamed). :-)
Jul 22 '05 #2
Mike Wahler wrote:

"Steve" <st*************@yahoo.com> wrote in message
news:b9**************************@posting.google.c om...
Hi,

We have software built on USL and are migrating to IBM VisualAge STL.
Can someone tell me the major difference between the two? Is the "Block"

in
USL the same as "vector" in STL?


The difference is that 'USL' is not part of standard C++
and 'STL' is a (informal) term used to refer to the
contanier/iterator/algorithm parts of the C++ standard
library. 'STL' issues are topical here, 'USL' issues are
not.


Questions about a comparison between STL and some other similar library _are_
appropriate.
Jul 22 '05 #3

"Julie" <ju***@nospam.com> wrote in message
news:40***************@nospam.com...
Mike Wahler wrote:

"Steve" <st*************@yahoo.com> wrote in message
news:b9**************************@posting.google.c om...
Hi,

We have software built on USL and are migrating to IBM VisualAge STL.
Can someone tell me the major difference between the two? Is the
"Block" in
USL the same as "vector" in STL?
The difference is that 'USL' is not part of standard C++
and 'STL' is a (informal) term used to refer to the
contanier/iterator/algorithm parts of the C++ standard
library. 'STL' issues are topical here, 'USL' issues are
not.


Questions about a comparison between STL and some other similar library

_are_ appropriate.


I disagree. Anyone participating here is assumed to know
or ask about C++, of which what is informally called 'STL' is a
part. No other assumptions can be made about any third-party
libraries or tools, etc. E.g. I have no idea what OP meant by
'USL'. To some, it might mean one thing, to others some other
thing(s). I've already cited the only meaning 'USL' has to me,
and it's certainly not C++-oriented.

IMO this is a good example of why restricting topicality of a
discussion forum is a Good Thing(tm).

-Mike
Jul 22 '05 #4
st*************@yahoo.com (Steve) wrote in message news:<b9**************************@posting.google. com>...
Hi,

We have software built on USL and are migrating to IBM VisualAge STL.
Can someone tell me the major difference between the two? Is the "Block" in
USL the same as "vector" in STL?

Thanks,
Steve


What the heck is USL?
Jul 22 '05 #5
Julie <ju***@nospam.com> wrote in message news:<40***************@nospam.com>...
Mike Wahler wrote:

"Steve" <st*************@yahoo.com> wrote in message
news:b9**************************@posting.google.c om...
Hi,

We have software built on USL and are migrating to IBM VisualAge STL.
Can someone tell me the major difference between the two? Is the "Block" in USL the same as "vector" in STL?


The difference is that 'USL' is not part of standard C++
and 'STL' is a (informal) term used to refer to the
contanier/iterator/algorithm parts of the C++ standard
library. 'STL' issues are topical here, 'USL' issues are
not.


Questions about a comparison between STL and some other similar library _are_
appropriate.


USL has Set_of_p, Set_of_piter, List_of_p, List_of_piter. Does anyone
know if STL has those classes too?
Jul 22 '05 #6
> > Questions about a comparison between STL and some other similar library
_are_
appropriate.


USL has Set_of_p, Set_of_piter, List_of_p, List_of_piter. Does anyone
know if STL has those classes too?


I think its clear that no-one here knows what USL is, perhaps you could
provide a reference.

However STL has set and list classes plus iterators for those classes. How
close they are to what you are familiar with in USL I have no idea.

john
Jul 22 '05 #7
"Steve" <st*************@yahoo.com> wrote
USL has Set_of_p, Set_of_piter, List_of_p, List_of_piter.
Does anyone know if STL has those classes too?


The Standard Library has std::set<> and std::list<> which are more generalized
than USL's Setxxx and Listxxx. They're also more efficient because they can store
the target objects in-place. The iterators are classes inside their respective
container namespaces, such as std::set<>::iterator.

For those who don't know USL, you can find some docs at:
http://www.desy.de/user/projects/C++/products/usl.html.

Anyone who has used USL (I only had to port programs away from it, thank
goodness) will have all the more reason to be grateful for the C++ Standard
Library.

And I definitely think that USL is about as topical as Rogue Wave Tools.h++ or
the old Borland container hierarchy.

Claudio Puviani
Jul 22 '05 #8
On 6 May 2004 14:26:12 -0700, be****@pacbell.net (Bob Bell) wrote:
What the heck is USL?


United Soccer Leagues
Ultra Stereo Labs, Inc.
United Skirmish League
United Security Life Insurance Co.
Unix System Laboratories
University of Southwestern Louisiana (now known as the University of
Louisiana at Lafayette)
Jul 22 '05 #9
"Claudio Puviani" <pu*****@hotmail.com> wrote in message news:<eu***********************@news4.srv.hcvlny.c v.net>...
"Steve" <st*************@yahoo.com> wrote
USL has Set_of_p, Set_of_piter, List_of_p, List_of_piter.
Does anyone know if STL has those classes too?


The Standard Library has std::set<> and std::list<> which are more generalized
than USL's Setxxx and Listxxx. They're also more efficient because they can store
the target objects in-place. The iterators are classes inside their respective
container namespaces, such as std::set<>::iterator.

For those who don't know USL, you can find some docs at:
http://www.desy.de/user/projects/C++/products/usl.html.

Anyone who has used USL (I only had to port programs away from it, thank
goodness) will have all the more reason to be grateful for the C++ Standard
Library.

And I definitely think that USL is about as topical as Rogue Wave Tools.h++ or
the old Borland container hierarchy.

Claudio Puviani


Claudio,
Thanks for clarification. I am also porting programs away from USL.
In USL, Set_of_p<> has member functions: contains(), select(), next().
There are no exactly same functions in std::set<>. I need to provide
wraper functions for those. Am I right?
Jul 22 '05 #10
On Thu, 6 May 2004 12:22:18 UTC, st*************@yahoo.com (Steve) wrote:
Hi,

We have software built on USL and are migrating to IBM VisualAge STL.
Can someone tell me the major difference between the two? Is the "Block" in
USL the same as "vector" in STL?

Thanks,
Steve


<Ears perked up>

Did I hear you mention IBM VisualAge? Its nice to hear someone else
has used some of their stuff. I had to read the posts on USL to find out
what it was.

David
-- still using IBM VisualAge C++ and other VA tools --
Jul 22 '05 #11
"Steve" <st*************@yahoo.com> wrote
"Claudio Puviani" <pu*****@hotmail.com> wrote
"Steve" <st*************@yahoo.com> wrote
USL has Set_of_p, Set_of_piter, List_of_p, List_of_piter.
Does anyone know if STL has those classes too?
The Standard Library has std::set<> and std::list<> which are more generalized than USL's Setxxx and Listxxx. They're also more efficient because they can store the target objects in-place. The iterators are classes inside their respective container namespaces, such as std::set<>::iterator.

For those who don't know USL, you can find some docs at:
http://www.desy.de/user/projects/C++/products/usl.html.

Anyone who has used USL (I only had to port programs away from it, thank
goodness) will have all the more reason to be grateful for the C++ Standard
Library.

And I definitely think that USL is about as topical as Rogue Wave Tools.h++ or the old Borland container hierarchy.

Claudio Puviani


Claudio,
Thanks for clarification. I am also porting programs away from USL.
In USL, Set_of_p<> has member functions: contains(), select(), next().
There are no exactly same functions in std::set<>.


The functions won't be named the same or work exactly in the same way, but you do
have the same functionality.
'count()' and 'find()' will do the work of 'contains()' and 'select()', while
operator++ will do the work of 'next()'.
I need to provide wraper functions for those. Am I right?


I certainly wouldn't wrap them. I'd much rather modify the code in such a way
that it uses the Standard Library in a way that's natural for the container in
question. It might hurt up front, but the effort will pay for itself in the long
run.

Claudio Puviani
Jul 22 '05 #12
"Claudio Puviani" <pu*****@hotmail.com> wrote in message news:<CN***********************@news4.srv.hcvlny.c v.net>...
"Steve" <st*************@yahoo.com> wrote
"Claudio Puviani" <pu*****@hotmail.com> wrote
"Steve" <st*************@yahoo.com> wrote
> USL has Set_of_p, Set_of_piter, List_of_p, List_of_piter.
> Does anyone know if STL has those classes too?

The Standard Library has std::set<> and std::list<> which are more generalized than USL's Setxxx and Listxxx. They're also more efficient because they can store the target objects in-place. The iterators are classes inside their respective container namespaces, such as std::set<>::iterator.

For those who don't know USL, you can find some docs at:
http://www.desy.de/user/projects/C++/products/usl.html.

Anyone who has used USL (I only had to port programs away from it, thank
goodness) will have all the more reason to be grateful for the C++ Standard
Library.

And I definitely think that USL is about as topical as Rogue Wave Tools.h++ or the old Borland container hierarchy.

Claudio Puviani


Claudio,
Thanks for clarification. I am also porting programs away from USL.
In USL, Set_of_p<> has member functions: contains(), select(), next().
There are no exactly same functions in std::set<>.


The functions won't be named the same or work exactly in the same way, but you do
have the same functionality.
'count()' and 'find()' will do the work of 'contains()' and 'select()', while
operator++ will do the work of 'next()'.
I need to provide wraper functions for those. Am I right?


I certainly wouldn't wrap them. I'd much rather modify the code in such a way
that it uses the Standard Library in a way that's natural for the container in
question. It might hurt up front, but the effort will pay for itself in the long
run.

Claudio Puviani


The code used USL List operator[]. It does not seem easily to get away
from it. Is there a way to use STL list performing operator[] without
writing operator[] for STL list?
Jul 22 '05 #13
"Steve" <st*************@yahoo.com> wrote in message
The code used USL List operator[]. It does not seem easily to
get away from it. Is there a way to use STL list performing
operator[] without writing operator[] for STL list?


If you need direct/random access, simply use an std::vector instead of and
std::list. Indexing into a list is abominably inefficient and the C++ standard
library reflects that fact by not giving you a shortcut to do it. The performance
gain you'll likely get by switching to a vector, by itself, will probably justify
your move to the standard containers. :-)

Claudio Puviani

Jul 22 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.