Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

eosio multi index clear

template<name::raw A, typename B, typename... C> void clear_table(multi_index<A, B, C...>* table) { 
	auto it = table->begin(); 
	while (it != table->end()) { it = table->erase(it); } 
};

clear_table(&_table);
 
PREVIOUS NEXT
Tagged: #eosio #multi #index #clear
ADD COMMENT
Topic
Name
4+4 =