什么是标准C ++库的替代品,并提高与一个明确的实现? [英] What are the alternatives to the standard C++ library and boost with a clear implementation?

查看:159
本文介绍了什么是标准C ++库的替代品,并提高与一个明确的实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有标准库的特殊问题,唯一的真正的问题是,C ++库使用接口的代码与一堆头,真正的实现很大程度上取决于我的应用程序将在目标机器上找到

I don't have particular problems with the standard library, the only real issue is that the C++ library is used interfacing the code with a bunch of headers and the real implementation heavily depends on what my application will find on the target machine in terms of libraries.

所以我一直在寻找带有容器,算法和iteraators的库,也许开源,有一个明确的实现,到目前为止我只找到这2 :

So I was looking for libraries with containers, algorithms and iteraators, maybe open source, with a clear implementation, so far i have only found this 2:


  • boost库

  • QT库

但是这不是一个真正的C ++标准库,这意味着QT主要是一个GUI库,也提供容器和其他好东西,boost是simpy巨大的,所有的C ++ std类组件只是这个库的一个很小的一部分,这个库,它不是真正的端口到一个新的目标,因为构建系统有一个非标准的工具链,它使用自己的构建解决方案(bjam)。

But none of this is a real C++ standard library, with this I mean that QT is mainly a GUI library that also offers containers and other good stuff, boost is simpy huge and all the C++ std-like components are just a really small part of this library, also this library it's not really trivial to port to a new target because the build system have a non-standard toolchain and it uses its own build solution ( bjam ).

最后使用boost和QT我没有得到一个简单的解决方案或一个可行的解决方案,可以替换C ++库,因为我希望

In the end with both boost and QT i don't get an easy solution or a workable solution that can replace the C++ library as i wish it would be.

到目前为止,我找到的最好的项目是 Apache C ++标准库,但这个项目已经死了。

So far the best project that i have found is the Apache C++ Standard Library that was just right but this project is dead.

有人可以建议一个库,只是替换标准库,它的开源

Someone can suggest a library that just replaces the standard library and it's open-source with a permissive license ?

推荐答案


真正的实现在很大程度上取决于我的应用程序
在库上找到目标机器

the real implementation heavily depends on what my application will find on the target machine in terms of libraries

真正的实现基本上取决于你的编译器,而不是你运行的机器程序。

The real implementation basically depends on your compiler, not the machine you're running your programs on.

不同的编译器可能会有不同的实现,但我相信这是没有理由替换这样一个广泛而精心设计的库与自制的东西。这是你不太可能找到一个替换图书馆的原因,这是很好的。

Different compilers may come with different implementations, however I believe this is no reason to replace such an extensive and well-thought out library with something home-made. That's the very reason you're unlikely to find a replacement library that is this good.

这篇关于什么是标准C ++库的替代品,并提高与一个明确的实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆