Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

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)

n3225

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. 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -