confused about the purpose of the scope for instantiating a multi_index
I am confused about the purpose of scope which is the an argument of multi_index constructor. if the scope serves the same as its name suggests, the instantiated table should only contain records whose attribute used for index matches the scope value. But actually, the whole table is still accessible. So, what is the purpose for scope?
index and scope are different. If you add a row using one scope then read rows using a different scope, they won't show up.
@tbfleming which attribute is used for scope? where is it defined? at the record struct or at multi_index table?
It's a multi_index constructor argument
can the scope be any type of object?
the scope is a uint64_t
thx