Hi.

I noticed that c++ templates define types using the keyword class, and then you 
use them you plug in the data type, like double.
is double actually a class? does it have data members I can look at? because if 
it does, I would like to see how to access them. specifically, I want the 
value. I want to overload that class, if that's possible.

example:
template<class T>
class abc {
    protected:

    T somemember;
    public:

    abc() {}
    ~abc() {}

}


I have not seen this discussed because I was told it's an integral data type. 
but this doesn't explain why it can be used with class... I was taught only 
classes could be used with class, (but then we just kinda did templates and 
didn't discuss).

 
any help appreciated.

maybe I need to take this up on a c++ newsgroup? but I had hopes someone from 
the compiler set would know an answer to this. I don't have stroutsrup's book 
available to me.


-------------
Jim Michaels
jmich...@yahoo.com
j...@renewalcomputerservices.com
http://RenewalComputerServices.com
http://JesusnJim.com (my personal site, has software)
---
IEC Units: Computer RAM & SSD measurements, microsoft disk size measurements 
(note: they will say GB or MB or KB or TB when it is IEC Units!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024^1B=1KiB]
[2^20B=1,024^2B=1,048,576B=1MiB]
[2^30B=1,024^3B=1,073,741,824B=1GiB]
[2^40B=1,024^4B=1,099,511,627,776B=1TiB]
[2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
SI Units: Hard disk industry disk size measurements:

[KB] [MB] [GB] [TB]
[10^3B=1,000B=1KB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
[10^15B=1,000,000,000,000,000B=1PB]
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to