Featured post
c++ - Where is string::size_type documented? -
i searching web how manipulate (tokenize) strings, , started find many references string::size_type, didn't understand @ @ first... have searched more , found many places concept explained, including useful questions/answers here @ so:
https://stackoverflow.com/questions/tagged/size-type
the question is: documented? found q&a , forum posts. usual c++ std library documentation web site didn't mention it:
http://www.cplusplus.com/reference/string/string/
so: string::size_type documented?
i guess answer can two-fold:
1- actual c++ standard ultimate documentation. may quote it. can find online? (i searched didn't find it).
2- actual standard document bit difficult read , understand newbie me. know of web site cplusplus.com std api documented example code?
well place start c++ tag:
https://stackoverflow.com/tags/c%2b%2b/info
which leads too:
find current c or c++ standard documents?
where find current c or c++ standard documents?
which leads online draft of standard:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3092.pdf
personally use page:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/
then search papers contain word draft latest free version of standard draft. is:
n3035
updated: (by eugen constantin dinca)
which gives us:
21.4 class template basic_string [basic.string]
typedef typename allocator_traits<allocator>::size_type size_type;
which default is:
std::allocator<char>:::size_type
which defined as:
20.2.2 allocator requirements [allocator.requirements]
member return type assertion note default =========================================================================== x::size_type unsigned integral type type can represent size_t size of largest object in allocation model.
- Get link
- X
- Other Apps
Comments
Post a Comment