Angelscript addon Template Containers
2.31.0
STL container powerr for Angelscript
|
Before you can register a template specialization for a container, you must first register the content class itself.
You can only register template specializations for these containers:
map and unordered_map are not available because they take 2 template parameters and that would require partial template specialization which angelscript probably doesnt support.
The containers require certain operators to be implemented before they can be specialized:
Hash is not an operator, but a functor by name of aatc::hash::hashfunctor
See: Registering hash functions for all your hashing needs
The tempspec registration functions work like this:
Warning: You should not register MyCppClass* as a tempspec. If you want to store handles, you should use a templated container instead.
Registering a template specialization of the class "myVec3" for the containers vector and list: