Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 31,713 of 33,346    |
|    Seungbeom Kim to All    |
|    size_type and size_t    |
|    02 Dec 11 05:54:26    |
      XPost: comp.lang.c++       From: musiphil@bawi.org              On 2011-11-29 22:33, Daniel Krügler wrote:       >       >> size_t iFirstPlaceholderPos = sFormat.find(g_sPlaceholder);       >       > Either use string::size_type or - more preferably auto to determine the       > type of iFirstPlaceholderPos. In theory there is no guarantee that       > size_t and string::size_type have the same type or even the same maximum       > value (which is relevant when using string::npos).              I agree that it's preferable to use string::size_type instead of size_t,       at least semantically. However, string is defined to be basic_string |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca