EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.29k stars 3.6k forks source link

How to include multi_index.hpp #11086

Open Charles-ch opened 2 years ago

Charles-ch commented 2 years ago

I want to use multi_index.hpp from cdt,how to include it from cdt?

kingsnow-2008 commented 2 years ago

do you mean reference multi_index.hpp in smart contract file?

Charles-ch commented 2 years ago

do you mean reference multi_index.hpp in smart contract file?

En,For example,I want to use multi_index under contracts directory of eos.

kingsnow-2008 commented 2 years ago

You can use “eosio.hpp” that include the file “multi_index.hpp” in your smart contract。you can refer to https://developers.eos.io/manuals/eosio.cdt/latest/how-to-guides/multi-index/index。 Maybe it can help you。