mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
27 lines
555 B
TOML
27 lines
555 B
TOML
|
[info]
|
|||
|
typeName = "std::pair<"
|
|||
|
numTemplateParams = 2
|
|||
|
ctype = "PAIR_TYPE"
|
|||
|
header = "utility"
|
|||
|
ns = ["namespace std"]
|
|||
|
replaceTemplateParamIndex = []
|
|||
|
# allocatorIndex = 0
|
|||
|
# underlyingContainerIndex = 0
|
|||
|
|
|||
|
[codegen]
|
|||
|
decl = """
|
|||
|
template<typename P, typename Q>
|
|||
|
void getSizeType(const %1%<P,Q> &p, size_t& returnArg);
|
|||
|
"""
|
|||
|
|
|||
|
func = """
|
|||
|
template<typename P, typename Q>
|
|||
|
void getSizeType(const %1%<P,Q> &p, size_t& returnArg)
|
|||
|
{
|
|||
|
SAVE_SIZE(sizeof(%1%<P,Q>) - sizeof(P) - sizeof(Q));
|
|||
|
|
|||
|
getSizeType(p.first, returnArg);
|
|||
|
getSizeType(p.second, returnArg);
|
|||
|
}
|
|||
|
"""
|