473,569 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

std::size_t Which header file?


I'm writing a ".cpp" and ".hpp" combination.
The ".hpp" just contains one sole function declaration.
The ".cpp" makes use of the function "std::strle n" and the type
"std::size_ t".
I'm wondering what header file should I include to use "std::strle n" and
which header file should I include to use "std::size_ t" ?
-JKop
Jul 22 '05 #1
3 14227

"JKop" <NU**@NULL.NULL > wrote in message
news:d7******** ***********@new s.indigo.ie...

I'm writing a ".cpp" and ".hpp" combination.
The ".hpp" just contains one sole function declaration.
The ".cpp" makes use of the function "std::strle n" and the type
"std::size_ t".
I'm wondering what header file should I include to use "std::strle n" and
which header file should I include to use "std::size_ t" ?


<cstddef> for std::size_t and <cstring> for std::strlen.

john
Jul 22 '05 #2
John Harrison wrote:

"JKop" <NU**@NULL.NULL > wrote in message

I'm wondering what header file should I include to use "std::strle n" and
which header file should I include to use "std::size_ t" ?


<cstddef> for std::size_t and <cstring> for std::strlen.


See, I told you so. There is a problem with using #includes to simulate
what are called packages in UML terms. I actually presented size_t as an
example.
--
"If our hypothesis is about anything and not about some one or more
particular things, then our deductions constitute mathematics. Thus
mathematics may be defined as the subject in which we never know what we
are talking about, nor whether what we are saying is true." - Bertrand
Russell

Jul 22 '05 #3
JKop <NU**@NULL.NULL > wrote in message news:<d7******* ************@ne ws.indigo.ie>.. .
I'm writing a ".cpp" and ".hpp" combination.
The ".hpp" just contains one sole function declaration.
The ".cpp" makes use of the function "std::strle n" and the type
"std::size_ t".
I'm wondering what header file should I include to use "std::strle n" and
which header file should I include to use "std::size_ t" ?


<cstring> handles both.

--
Later,
Jerry.

The universe is a figment of its own imagination.
Jul 22 '05 #4

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

Similar topics

5
6172
by: Christopher | last post by:
can someone refresh my meory on what std::size_t is used for? I am wondering if my template container class should have it's capacity as a size_t or an int? , Christopher
12
1755
by: Steven T. Hatton | last post by:
I recently came across the suggestion that it might be beneficial to create a header file containing all the Standard Headers, and include that in all the places where declarations from the Standard Library are used - as opposed to including the specific header containing the declaration. It was argued that this may improve compilation...
2
1950
by: earthwormgaz | last post by:
I am trying to add the headers for a library I am using to a namespace to avert issues with name clashes. namespace Lib { #include <Lib/SomeFile.h> }; I am finding though that statements to the following effect in that code are then broken ...
5
2993
by: greg.ruthenbeck | last post by:
Hi, I'm using Boost::uBLAS::mapped_matrix for working with sparse matrices. At the moment, the maximum dimension of mapped_matrix is 65535x65535 since std::size_t compiles as unsigned int (UInt32). I'm looking for a way of increasing this limit. The best way I can think of would be to ensure that size_t uses a bigger (64-bit) type rather...
7
4358
Axon
by: Axon | last post by:
Is there a way to force std::size_t to be compiled as __uint64 (before STL etc are compiled). Where is size_t defined?
27
2320
by: mike3 | last post by:
Hi. I can't believe I may have to use an array here. I've got this bignum package I was making in C++ for a fractal generator, and tried an approach that was suggested to me here a while back, about using a "stack of vectors" instead of a static array. Anyway, I put the suggestion into effect, and it seems the routine that uses the...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7922
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5509
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...
0
5218
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...
0
3653
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...
1
2111
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
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
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...

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.