mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated func and tonlib
This commit is contained in:
parent
493ae2410c
commit
a73d202ba2
50 changed files with 1340 additions and 271 deletions
|
@ -14,7 +14,7 @@
|
|||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Copyright 2017-2019 Telegram Systems LLP
|
||||
Copyright 2017-2020 Telegram Systems LLP
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
|
@ -348,6 +348,10 @@ class Stack : public td::CntObject {
|
|||
void pop_many(int count) {
|
||||
stack.resize(stack.size() - count);
|
||||
}
|
||||
void pop_many(int count, int offs) {
|
||||
std::move(stack.cend() - offs, stack.cend(), stack.end() - (count + offs));
|
||||
pop_many(count);
|
||||
}
|
||||
void drop_bottom(int count) {
|
||||
std::move(stack.cbegin() + count, stack.cend(), stack.begin());
|
||||
pop_many(count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue