, :
23.2.1 Table 96 — Container requirements . 747 N4296:
a.max_size(); size_type; distance(begin(),end())
, , , ++ . , , ( API). , , , API, , .
However, technically, in any case, there is an upper bound, so it is recommended to use it in such cases. Oddly enough, it is almost impossible to reach the limit that you get from std::list::max_size()(i.e. you run OOM), but alone theoretical infinity.
luk32 source
share