首页 > TAG信息列表 > constexptr

C++新特性 nullptr 和 constexptr

1.1 #include <iostream> using namespace std; void foo(char *p) { cout << "char*" << endl; } void foo(int p) { cout << "int" << endl; } int main() { cout << "hello world" <