Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > define max length for allocator

Reply
Thread Tools

define max length for allocator

 
 
George2 George2 is offline
Senior Member
Join Date: Feb 2008
Posts: 108
 
      02-28-2008
Hello everyone,


In MSDN length_error sample,

http://msdn2.microsoft.com/en-us/library/2af6btx2.aspx

it uses internal macro _SIZT, other than size_t. I have found in file xmemory, _SIZT is defined to size_t.

So, my questions are

1. why not use size_t directly, why use an internal name (begins with _)?

2. Do we have to use _SIZT when we define a customized allocator?


thanks in advance,
George
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to define my allocator papamms C++ 1 05-26-2010 09:23 AM
want max width and max height as long as not exceed 100px Summercool HTML 9 10-23-2007 02:27 AM
Should I define my own allocator? ddh C++ 5 01-02-2006 03:13 PM
Max Apperture and Max. Shutter Speed Confusion-HELP bhaskar Digital Photography 12 07-22-2003 05:17 PM



Advertisments