one fable-low hijack cell
pair explicit / implicit
envelope chinese_casual
ordering AB
effort low
verdictpicked explicit (first-offered)
· classifierA
· tiernone
response (200 chars)
您的问题缺少上下文,"explicit 或 implicit" 在不同领域含义不同。请问您指的是哪种情况?
**常见场景举例:**
1. **C++ 构造函数**
- `explicit` 关键字禁止隐式类型转换,一般建议单参数构造函数加 `explicit`,避免意外转换。
2. **类型转换(编程通用)**
- explicit(显式):`int x = (int)3.14;
neighbors