nullptr造句
例句与造句
- The typed pointer constant nullptr has been introduced with C + + 11.
- However, C + + 11 has introduced an explicit nullptr constant to be used instead.
- C + + 11 corrects this by introducing a new keyword to serve as a distinguished null pointer constant : nullptr.
- It is of type nullptr _ t, which is implicitly convertible and comparable to any pointer type or pointer-to-member type.
- If a dynamic _ cast to a pointer fails, the result is the nullptr constant, whereas if the destination is a reference ( which cannot be null ), the cast throws an exception.
- It's difficult to find nullptr in a sentence. 用nullptr造句挺难的
- While the original proposal specified that an rvalue of type nullptr _ t should not be convertible to bool, the core language working group decided that such a conversion would be desirable, for consistency with regular pointer types.
- An exception is the way that zero participates in overload resolution in C + +, where zero is treated as an integer rather than a pointer; for this reason the special value nullptr is preferred over the integer zero.