473,772 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Genericity is *not* templates

According to the C++ FAQ Lite:

http://www.parashift.com/

[34.11] What is "genericity "?

Yet another way to say, "class templates."

Not to be confused with "generality "
(which just means avoiding solutions which are overly specific),
"genericity " means class templates.

This is *not* correct.
Class templates are *not* generally generic.
Usually, class templates are only be used to generate template classes
for a restricted set of types.
Only class templates which are designed to generate template classes
for *all* types are truly generic.
The standard vector class template, for example, is generic but
the standard valarry class template is *not* generic
because it only makes sense for numeric types.

Jul 22 '05 #1
22 2194
E. Robert Tisdale wrote:
According to the C++ FAQ Lite:

http://www.parashift.com/

[34.11] What is "genericity "?

Yet another way to say, "class templates."

Not to be confused with "generality "
(which just means avoiding solutions which are overly specific),
"genericity " means class templates.

This is *not* correct.
Class templates are *not* generally generic.
Usually, class templates are only be used to generate template classes
for a restricted set of types.
Only class templates which are designed to generate template classes
for *all* types are truly generic.
The standard vector class template, for example, is generic but
the standard valarry class template is *not* generic
because it only makes sense for numeric types.


So, what you're telling us is there are generic templates and branded(TM)
templates? :-)

Seriously, I find your observation interesting. Is this interpretation of
the meaning of 'genericity' your own, or is there an 'established
authority'?
--
p->m == (*p).m == p[0].m
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org
Jul 22 '05 #2
E. Robert Tisdale wrote:
According to the C++ FAQ Lite:

http://www.parashift.com/

[34.11] What is "genericity "?

Yet another way to say, "class templates."

Not to be confused with "generality "
(which just means avoiding solutions which are overly specific),
"genericity " means class templates.

This is *not* correct.
Class templates are *not* generally generic.
Usually, class templates are only be used to generate template classes
for a restricted set of types.
Only class templates which are designed to generate template classes
for *all* types are truly generic.
The standard vector class template, for example, is generic but
the standard valarry class template is *not* generic
because it only makes sense for numeric types.


So, what you're telling us is there are generic templates and branded(TM)
templates? :-)

Seriously, I find your observation interesting. Is this interpretation of
the meaning of 'genericity' your own, or is there an 'established
authority'?
--
p->m == (*p).m == p[0].m
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org
Jul 22 '05 #3
Steven T. Hatton wrote:
E. Robert Tisdale wrote:

According to the C++ FAQ Lite:

http://www.parashift.com/

[34.11] What is "genericity "?

Yet another way to say, "class templates."

Not to be confused with "generality "
(which just means avoiding solutions which are overly specific),
"genericity " means class templates.

This is *not* correct.
Class templates are *not* generally generic.
Usually, class templates are only be used to generate template classes
for a restricted set of types.
Only class templates which are designed to generate template classes
for *all* types are truly generic.
The standard vector class template, for example, is generic but
the standard valarry class template is *not* generic
because it only makes sense for numeric types.

So, what you're telling us is there are
generic templates and branded(TM) templates? :-)

Seriously, I find your observation interesting.
Is this interpretation of the meaning of 'genericity' your own,
or is there an 'established authority'?


Pick the dictionary of your choice. I use
The American Heritage® Dictionary of the English Language:
Fourth Edition:

http://www.bartleby.com/61/

generic

ADJECTIVE:1. Relating to or descriptive of an entire group or class;
general. See synonyms at general.

SYNONYMS:genera l, common, generic, universal These adjectives mean
belonging to, relating to, or affecting the whole: the general welfare;
a common enemy; generic likenesses; universal military conscription.

Jul 22 '05 #4
Steven T. Hatton wrote:
E. Robert Tisdale wrote:

According to the C++ FAQ Lite:

http://www.parashift.com/

[34.11] What is "genericity "?

Yet another way to say, "class templates."

Not to be confused with "generality "
(which just means avoiding solutions which are overly specific),
"genericity " means class templates.

This is *not* correct.
Class templates are *not* generally generic.
Usually, class templates are only be used to generate template classes
for a restricted set of types.
Only class templates which are designed to generate template classes
for *all* types are truly generic.
The standard vector class template, for example, is generic but
the standard valarry class template is *not* generic
because it only makes sense for numeric types.

So, what you're telling us is there are
generic templates and branded(TM) templates? :-)

Seriously, I find your observation interesting.
Is this interpretation of the meaning of 'genericity' your own,
or is there an 'established authority'?


Pick the dictionary of your choice. I use
The American Heritage® Dictionary of the English Language:
Fourth Edition:

http://www.bartleby.com/61/

generic

ADJECTIVE:1. Relating to or descriptive of an entire group or class;
general. See synonyms at general.

SYNONYMS:genera l, common, generic, universal These adjectives mean
belonging to, relating to, or affecting the whole: the general welfare;
a common enemy; generic likenesses; universal military conscription.

Jul 22 '05 #5
On Tue, 06 Apr 2004 10:24:40 -0700, "E. Robert Tisdale"
<E.************ **@jpl.nasa.gov > wrote:
According to the C++ FAQ Lite:

http://www.parashift.com/

[34.11] What is "genericity "?

Yet another way to say, "class templates."

Not to be confused with "generality "
(which just means avoiding solutions which are overly specific),
"genericity " means class templates.

This is *not* correct.
Class templates are *not* generally generic.
Usually, class templates are only be used to generate template classes
for a restricted set of types.
Only class templates which are designed to generate template classes
for *all* types are truly generic.
The standard vector class template, for example, is generic but
the standard valarry class template is *not* generic
because it only makes sense for numeric types.


I suppose the word "genericity " doesn't necessarily in and of itself have
to imply "templates. " But in the context of C++, it pretty much does, and
the C++ FAQ Lite isn't attempting to define terms as used outside that
context. In any case, C++ happens to be the only context /I've/ ever seen
it used in. While it isn't in the Merriam-Webster online dictionary as such
(note that under "generic", the MW shows "genericnes s", not "genericity "),
here's one technical site's definition of it:

The possibility for a language to provided (sic.) parameterized
modules or types. e.g. List(of:Integer ) or List(of:People) .

Okay, the grammatical error doesn't exactly inspire high levels of
confidence in the source, but this does sound right, and it certainly
describes the functionality of templates in C++.

If some templates just happen to be designed to work only for class-typed
template parameters, or even only for a very narrow selection of classes
(e.g., std::string), that hardly seems reason enough (at least to me) to
proclaim that those templates are no longer examples of "genericity ".
-leor


--
Leor Zolman --- BD Software --- www.bdsoft.com
On-Site Training in C/C++, Java, Perl and Unix
C++ users: Download BD Software's free STL Error Message Decryptor at:
www.bdsoft.com/tools/stlfilt.html
Jul 22 '05 #6
On Tue, 06 Apr 2004 10:24:40 -0700, "E. Robert Tisdale"
<E.************ **@jpl.nasa.gov > wrote:
According to the C++ FAQ Lite:

http://www.parashift.com/

[34.11] What is "genericity "?

Yet another way to say, "class templates."

Not to be confused with "generality "
(which just means avoiding solutions which are overly specific),
"genericity " means class templates.

This is *not* correct.
Class templates are *not* generally generic.
Usually, class templates are only be used to generate template classes
for a restricted set of types.
Only class templates which are designed to generate template classes
for *all* types are truly generic.
The standard vector class template, for example, is generic but
the standard valarry class template is *not* generic
because it only makes sense for numeric types.


I suppose the word "genericity " doesn't necessarily in and of itself have
to imply "templates. " But in the context of C++, it pretty much does, and
the C++ FAQ Lite isn't attempting to define terms as used outside that
context. In any case, C++ happens to be the only context /I've/ ever seen
it used in. While it isn't in the Merriam-Webster online dictionary as such
(note that under "generic", the MW shows "genericnes s", not "genericity "),
here's one technical site's definition of it:

The possibility for a language to provided (sic.) parameterized
modules or types. e.g. List(of:Integer ) or List(of:People) .

Okay, the grammatical error doesn't exactly inspire high levels of
confidence in the source, but this does sound right, and it certainly
describes the functionality of templates in C++.

If some templates just happen to be designed to work only for class-typed
template parameters, or even only for a very narrow selection of classes
(e.g., std::string), that hardly seems reason enough (at least to me) to
proclaim that those templates are no longer examples of "genericity ".
-leor


--
Leor Zolman --- BD Software --- www.bdsoft.com
On-Site Training in C/C++, Java, Perl and Unix
C++ users: Download BD Software's free STL Error Message Decryptor at:
www.bdsoft.com/tools/stlfilt.html
Jul 22 '05 #7
On Tue, 06 Apr 2004 11:27:10 -0700, "E. Robert Tisdale"
<E.************ **@jpl.nasa.gov > wrote:

Seriously, I find your observation interesting.
Is this interpretation of the meaning of 'genericity' your own,
or is there an 'established authority'?
Pick the dictionary of your choice. I use
The American Heritage® Dictionary of the English Language:
Fourth Edition:

http://www.bartleby.com/61/

generic


That's "generic", a form of which is "genericnes s". We're talking about
"genericity ", for which I haven't found any (non-nerdish) dictionary
entries yet.
-leor

ADJECTIVE:1. Relating to or descriptive of an entire group or class;
general. See synonyms at general.

SYNONYMS:gener al, common, generic, universal These adjectives mean
belonging to, relating to, or affecting the whole: the general welfare;
a common enemy; generic likenesses; universal military conscription.


--
Leor Zolman --- BD Software --- www.bdsoft.com
On-Site Training in C/C++, Java, Perl and Unix
C++ users: Download BD Software's free STL Error Message Decryptor at:
www.bdsoft.com/tools/stlfilt.html
Jul 22 '05 #8
On Tue, 06 Apr 2004 11:27:10 -0700, "E. Robert Tisdale"
<E.************ **@jpl.nasa.gov > wrote:

Seriously, I find your observation interesting.
Is this interpretation of the meaning of 'genericity' your own,
or is there an 'established authority'?
Pick the dictionary of your choice. I use
The American Heritage® Dictionary of the English Language:
Fourth Edition:

http://www.bartleby.com/61/

generic


That's "generic", a form of which is "genericnes s". We're talking about
"genericity ", for which I haven't found any (non-nerdish) dictionary
entries yet.
-leor

ADJECTIVE:1. Relating to or descriptive of an entire group or class;
general. See synonyms at general.

SYNONYMS:gener al, common, generic, universal These adjectives mean
belonging to, relating to, or affecting the whole: the general welfare;
a common enemy; generic likenesses; universal military conscription.


--
Leor Zolman --- BD Software --- www.bdsoft.com
On-Site Training in C/C++, Java, Perl and Unix
C++ users: Download BD Software's free STL Error Message Decryptor at:
www.bdsoft.com/tools/stlfilt.html
Jul 22 '05 #9

"E. Robert Tisdale" <E.************ **@jpl.nasa.gov > wrote in message
news:40******** ****@jpl.nasa.g ov...
According to the C++ FAQ Lite:

http://www.parashift.com/

[34.11] What is "genericity "?

Yet another way to say, "class templates."

Not to be confused with "generality "
(which just means avoiding solutions which are overly specific),
"genericity " means class templates.

This is *not* correct.
Class templates are *not* generally generic.
Usually, class templates are only be used to generate template classes
for a restricted set of types.
Only class templates which are designed to generate template classes
for *all* types are truly generic.
The standard vector class template, for example, is generic but
the standard valarry class template is *not* generic
because it only makes sense for numeric types.


It sounds to me like you're applying the description backwards. The
statement does not say the term "templates" implies "genericity " (or
"genericnes s"), but the other way around: that saying "genericity " implies
"templates" . So if some templates are not "generic", that's fine, but of
you want to apply a "generic" solution, then you're talking about using
tmeplates.

"Of course, that's just my opinion...I could be wrong."

-Howard


Jul 22 '05 #10

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

Similar topics

22
1454
by: E. Robert Tisdale | last post by:
According to the C++ FAQ Lite: http://www.parashift.com/ What is "genericity"? Yet another way to say, "class templates." Not to be confused with "generality" (which just means avoiding solutions which are overly specific),
0
9619
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9911
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.