avatar
过期的ecb能用吗# PennySaver - 省钱一族
t*e
1
还有一个是Array和Queue的区别。
还有一个什么是StringBuffer?
最怕回答这类问题,感觉都知道,天天用的东西, 但是却往往回答不好。
avatar
z*n
2
忘记用了,不知道还能用不?
avatar
s*e
3
Array是顺序存储和随机访问。
Queue是先入先出。
Queue可以用array实现。
avatar
j*u
4
呵呵,去问问小二,一般店里过期一个星期之内还是可以的
这个看店看小二,去问问,一般没有问题

【在 z*****n 的大作中提到】
: 忘记用了,不知道还能用不?
avatar
c*r
6
你那里真好,一般都给用。我这里就不行,一般都不给用。据说只有一家店好像可以用
,还是ymmv的。所以我从来都不敢让自己的ECB过期,哪怕胡乱烧掉也不让它过期。

【在 j******u 的大作中提到】
: 呵呵,去问问小二,一般店里过期一个星期之内还是可以的
: 这个看店看小二,去问问,一般没有问题

avatar
t*e
7
What is iterator invalidation?
Answer:
Insertion
Sequence containers
vector: all iterators and references before the point of insertion are
unaffected, unless the new container size is greater than the previous
capacity (in which case all iterators and references are invalidated) [23.2.
4.3/1]
deque: all iterators and references are invalidated, unless the inserted
member is at an end (front or back) of the deque (in which case all
iterators are invalidated, but references to elements are unaffected) [23.2.
1.3/1]
list: all iterators and references unaffected [23.2.2.3/1]
Associative containers
[multi]{set,map}: all iterators and references unaffected [23.1.2/8]
Container adaptors
stack: inherited from underlying container
queue: inherited from underlying container
priority_queue: inherited from underlying container
Erasure
Sequence containers
vector: every iterator and reference after the point of erase is invalidated
[23.2.4.3/3]
deque: all iterators and references are invalidated, unless the erased
members are at an end (front or back) of the deque (in which case only
iterators and references to the erased members are invalidated) [23.2.1.3/4]
list: only the iterators and references to the erased element is invalidated
[23.2.2.3/3]
Associative containers
[multi]{set,map}: only iterators and references to the erased elements are
invalidated [23.1.2/8]
Container adaptors
stack: inherited from underlying container
queue: inherited from underlying container
priority_queue: inherited from underlying container
Resizing
vector: as per insert/erase [23.2.4.2/6]
deque: as per insert/erase [23.2.1.2/1]
list: as per insert/erase [23.2.2.2/1]
Note 1
Unless otherwise specified (either explicitly or by defining a function in
terms of other functions), invoking a container member function or passing a
container as an argument to a library function shall not invalidate
iterators to, or change the values of, objects within that container. [23.1/
11]
Note 2
It's not clear in C++2003 whether "end" iterators are subject to the above
rules; you should assume, anyway, that they are (as this is the case in
practice).
Note 3
The rules for invalidation of pointers are the sames as the rules for
invalidation of references.
avatar
j*u
8
呵呵,是啊,那个是难得又难得,实在没有办法了,不然不好意思的
恩,烧点腰果啥的还是可以的 :)

【在 c********r 的大作中提到】
: 你那里真好,一般都给用。我这里就不行,一般都不给用。据说只有一家店好像可以用
: ,还是ymmv的。所以我从来都不敢让自己的ECB过期,哪怕胡乱烧掉也不让它过期。

avatar
i*4
9
beep,
一家店的小二说是一周内的可以用,但一单顶多一张。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。