2022-12-19 14:37:51 +00:00
|
|
|
[info]
|
2023-05-23 22:26:38 +01:00
|
|
|
type_name = "boost::bimap"
|
2022-12-19 14:37:51 +00:00
|
|
|
ctype = "BOOST_BIMAP_TYPE"
|
|
|
|
header = "boost/bimap.hpp"
|
2023-05-23 22:26:38 +01:00
|
|
|
|
|
|
|
# Old:
|
|
|
|
numTemplateParams = 2
|
|
|
|
typeName = "boost::bimap"
|
2022-12-19 14:37:51 +00:00
|
|
|
ns = ["boost::bimap"]
|
|
|
|
|
|
|
|
[codegen]
|
|
|
|
decl = """
|
|
|
|
template <class KeyTypeA, class KeyTypeB, class AP1, class AP2, class AP3>
|
|
|
|
void getSizeType(const %1%<KeyTypeA, KeyTypeB, AP1, AP2, AP3> &container,
|
|
|
|
size_t& returnArg);
|
|
|
|
"""
|
|
|
|
|
|
|
|
func = """
|
|
|
|
template <class KeyTypeA, class KeyTypeB, class AP1, class AP2, class AP3>
|
|
|
|
void getSizeType(const %1%<KeyTypeA, KeyTypeB, AP1, AP2, AP3> &container,
|
|
|
|
size_t& returnArg)
|
|
|
|
{
|
|
|
|
|
|
|
|
SAVE_SIZE(sizeof(%1%<KeyTypeA, KeyTypeB, AP1, AP2, AP3>));
|
|
|
|
|
|
|
|
SAVE_DATA((uintptr_t)container.size());
|
|
|
|
|
|
|
|
for (auto const& it: container) {
|
|
|
|
getSizeType(it.left, returnArg);
|
|
|
|
getSizeType(it.right, returnArg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"""
|