CDT  v4.2.0
инструменты разработчика

◆ cbegin()

template<name::raw TableName, typename T , typename... Indices>
const_iterator eosio::multi_index< TableName, T, Indices >::cbegin ( ) const
inline

Возвращает итератор на объект с наименьшим значением первичного ключа в многоиндексной таблице.

Возвращает
Итератор на объект с наименьшим первичным ключом в многоиндексной таблице.

Пример:

// This assumes the code from the constructor example. Replace myaction() {...}
void myaction() {
// create reference to address_index - see emplace example below
// add dan account to table - see emplace example below
auto itr = addresses.find("dan"_n);
eosio::check(itr == addresses.cbegin(), "Only address is not at front.");
}
}
EOSIO_DISPATCH( addressbook, (myaction) )

См. определение в файле multi_index.hpp строка 1023