Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
约束包含仅适用于概念吗?
考虑这个例子 template
c
cconcepts
C20
为什么我不需要在 C++20 中的依赖类型之前指定“typename”?
这段代码在 C 20 中编译 使用 gcc 10 1 没有使用typename依赖类型之前的关键字std vector
c
templates
languagelawyer
C20
typename
C++工作草案的措辞可能存在缺陷(整数转换等级规则)
我发现其中可能存在矛盾标准C 工作草案 https eel is c draft 首先我陈述事实 最后提出我的问题 当 的时候整数转换等级成立 转化排名 1 1 http eel is c draft basic types conv ra
c
languagelawyer
C20
wchart
C++20 概念:约束规范化
这是 C 20 标准 ISO IEC 14882 2020 第 13 5 4 节 温度 施工 正常 https eel is c draft temp constr normal 第 1 段 强调我的 概念 ID C 的范式是约束表达式在每
c
templates
constraints
C20
cconcepts
热衷于仅在 datagridview 中更改特定的列标题颜色?
使用 VS 2005 C DataGridView WinForms 我需要为特定列的标题部分的字体 背景着色 我发现它只能对整个列列表的标题而不是单个列进行 非常感谢任何帮助 首先 在 DataGridView 中 您需要将 Enable
c
WinForms
DataGridview
visualstudio2005
C20
如何理解“明显不断评估”的定义?
P0595 https wg21 link P0595介绍了std is constant evaluated 功能 本文讨论了在某些情况下 包含表达式是常量表达式 但编译器不需要在编译时计算的情况 给出的例子是 constexpr dou
c
languagelawyer
C20
如何在 CMake 中使用 c++20 模块?
Clang http clang llvm org docs Modules html and MSVC http blogs msdn com b vcblog archive 2015 12 03 c modules in vs 201
c
CMake
C20
cmodules
如何确保weak_ptr不是从临时的shared_ptr创建的?
我们来上课吧Foo和方法void use weak ptr std weak ptr
c
C20
typetraits
cconcepts
weakptr
实现 std::iter_difference_t
我正在实现我自己的范围版本 因为它们尚未包含在标准库中 我陷入了实施困境std iter difference t The 最新草案 http eel is c draft incrementable traits 2 says 方式ite
c
C20
cconcepts
C++20 中的 CTAD 和指定初始值设定项
我已经在本文中表达了对 CTAD 与指定初始化程序的混淆question https stackoverflow com questions 57886451 c20 designated initializers with templat
c
C20
designatedinitializer
ctad
range::sort 无法编译
在 MyRect h 中 struct MyRect MyRect std initializer list
c
operatoroverloading
C20
stdranges
C++20 从带括号的值列表初始化聚合,不支持内部数组
采用 C 20p0960 https wg21 link p0960 允许从带括号的值列表初始化聚合 确切的措辞 dcl init 17 6 2 2 https eel is c draft dcl init 17 6 2 2 says 如
c
C20
aggregateinitialization
无法在 C++20 中将 std::cin 与 char* 或 char[] 一起使用
It used上班 阅读std cin到动态分配的chararray 或作为参数传入的数组 请参阅下面的 MCVE include
c
C20
使用 std::variant 强制使用通用接口,无需继承
假设你有一些类似的课程Circle Image Polygon为此 您需要强制执行一个如下所示的通用接口 不是真正的代码 struct Interface virtual bool hitTest Point p 0 virtual Rec
c
C20
Variant
仅支持 TrueType 字体。这不是 TrueType 字体异常
如何设置fontdialog只使用TrueType字体 有财产吗 None
C20
truetype
概念返回类型要求语法二对一模板参数
我想知道如何std same as的定义以及我们如何在概念或需求中使用它 Example void f1 bool f2 return true template lt typename T gt void Do T func if con
c
C20
cconcepts
如何从 CMake 命令行更改 C++ 标准?
目前我有一个需要 C 17 的项目 因此在CMakeLists txt我很早就有这条线 set CMAKE CXX STANDARD 17 从命令行 cmake 偶尔我想测试该项目是否也可以使用 C 20 进行编译 以避免意外 如何选择从命
c
CMake
C17
C20
为什么 C++11 对值参数有隐式移动,但对右值参数没有隐式移动?
在 C 11 中 值参数 和其他值 在返回时享受隐式移动 A func A a return a uses A A A if it exists 至少在 MSVC 2010 中 右值引用参数需要std move A func A a ret
c
C11
movesemantics
rvaluereference
C20
什么是自定义点对象以及如何使用它们?
C 标准的最后一个草案引入了所谓的 自定义点对象 自定义 点 对象 http eel is c draft customization point object 被范围库广泛使用 我似乎明白他们提供了一种编写自定义版本的方法begin sw
c
C20
最终挂起后协程的状态
协程具有初始挂起点和最终挂起点 Acoroutine handle is done https en cppreference com w cpp coroutine coroutine handle done当它在最终暂停点暂停时 然而
c
C20
ccoroutine
«
1
2
3
4
5
6
7
...15
»