STLPORT 中有哪些分配器可用,以及如何使用它们

发布于 2024-08-10 13:13:18 字数 162 浏览 5 评论 0原文

我们正在使用 STLPORT,并且想要更改 stlport 的默认分配器: 我们想尝试使用 vector而不是 vector

stlport 中有哪些替代分配器可用,它们有哪些功能? 我该如何使用它们?

We're using STLPORT and we'd like to change stlport's default allocator:
instead of vector<int>, we'd like to try vector<int, otherallocator>

Which alternative allocator are available in stlport, and what are their features?
How do I use them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

箹锭⒈辈孓 2024-08-17 13:13:18

请查看此处以切换默认分配器。我想您会发现可用的分配器实现位于安装中的 include/stlport/stl/ 下。
也就是说,它是标准的 界面,您可以 实现您自己的

Take a look here for switching the default allocator. I think you'll find the available allocator implementations are under include/stlport/stl/ in your installation.
That said, it's a standard interface and you can implement your own.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文