是否有任何 STL 实现支持 C++ 概念?

Do any STL implementations support C++ concepts?

我正在开发一个使用 C++ 概念的 class 项目。在哪里可以找到支持 concepts draft TS 约束的 STL 实现,例如 Equality_comparableSortable

感谢您的帮助!


这是我到目前为止尝试过的:

我已经成功编译了 c++-concepts branch from GCC's SVN,它似乎得到了维护(昨天由 Andrew Sutton 最后更新)。不过这个分支自带的libstdc++还没有更新概念。

我也尝试了 Concepts-Lite (gcc-clite),它承诺:

The standard library shipping with this compiler includes the constraints found in the paper "A Concept Design for the STL", which can be accessed by including the <type_traits> header file.

但是,从该页面下载的GCC代码中的libstdc++也没有概念。特别是,type_traits header 与它分叉的 GCC 修订版相比似乎没有变化。

看看Andrew Sutton's Origin library on github。如果您遵循 origin/core 目录,您可以找到基本概念。从外观上看,他也有一些图形、数学和一些容器的东西。

我不得不承认我自己正在探索这个问题,所以我还没有智能报告。

唯一的缺点:最近一次签到是在几个月或更长时间之前。我想我们会看到。