Shaka Player Embedded
|
#include <convert_js.h>
A template type that defines two conversion functions to convert between C++ and JavaScript. This should be instantiated with a single type argument for the type being converted (without cv-qualifiers or references). The second template argument is deduced based on the first. It is used to select which specialization to use.
It is fine to add more specializations after this, so long as it appears before it is being used. If the specialization is for a specific type (e.g. MyType), or it is for a templated type (e.g. std::vector<T>), you can just add a new specialization:
If the specialization is for a "category" of types (e.g. numbers, where the type would be T), then you need to add a new identifier and specialization above.
Definition at line 82 of file convert_js.h.