Concepts TS中是否有预定义的概念? [英] Are there any predefined concepts in Concepts TS?

查看:86
本文介绍了Concepts TS中是否有预定义的概念?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Concepts lite已被接受为TS,并且(示例实现)已合并到GCC主分支中,因此后续问题是是否预定义了任何概念(例如可排序 Random_access_range )?

'Concepts lite' were already accepted as a TS and (example implementation) merged into GCC main branch, so the follow up question is will any concepts come predefined (like Sortable or Random_access_range)?

在哪里可以找到这样的预定义概念?

Where do I look for such predefined concepts?

cppreference.com上的列表详尽无遗的清单?

我可以将它们与最新的GCC树干版本一起使用吗?

Can I use them with the latest GCC trunk build?

< br>

编辑1 :由于概念没有被C ++ 17接受,因此将C ++ 17更改为TS。



Edit 1: Changed C++17 to TS due to concepts not being accepted into C++17.

推荐答案

在Concepts TS中没有定义任何概念(来源:我写过Concepts TS)。

There are no concepts defined in the Concepts TS (source: I wrote the Concepts TS).

既不是疏忽也不是错误……目标是在TS中提供纯语言扩展,从而使开发人员有时间在投入(数量惊人)时间之前尝试新功能。定义标准库所需的概念。

It is neither an oversight nor mistake... The goal was to ship a pure language extension in the TS, allowing developers time to experiment with the new features before committing (an incredible amount of) time defining the concepts needed for the Standard Library.

Ranges TS将定义标准库所需的概念。

The Ranges TS will define the concepts needed for the Standard Library.

GCC可能附带一些概念,但我还没有听说有任何具体计划。我有一个库,定义了出现在Ranges TS中的许多概念(但不是全部): https://github.com/asutton / origin ,但我仍在研究可用的发行版和适当的文档。并且它仅从主干针对GCC进行编译。我希望下周能得到足够的文件。

GCC may ship with some concepts, but I have not heard of any concrete plans to do so. I have a library that defines many of the concepts (but not all) that appear in the Ranges TS here: https://github.com/asutton/origin, but I'm still working on a usable release and appropriate documentation. And it only compiles against GCC from trunk. I'm hoping for adequate documentation by next week.

这篇关于Concepts TS中是否有预定义的概念?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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