StackOverflow Questions for Tag: nullptr

James Battley
James Battley

Reputation: 11

In c++ when checking for nullptr, is there a reason to use if(!(x==nullptr)) instead of if(x!=nullptr), are they different?

Score: 1

Views: 172

Answers: 2

Read More
iammilind
iammilind

Reputation: 70088

Why is assignment of 0 or nullptr to std::string allowed, even when it results in a straight forward runtime exception?

Score: 1

Views: 744

Answers: 2

Read More
Zerocool_m12
Zerocool_m12

Reputation: 47

Huffman Coding using smart pointers is not working

Score: 1

Views: 110

Answers: 1

Read More
PaperBirdMaster
PaperBirdMaster

Reputation: 13298

How to get a typed nullptr "literal"?

Score: 4

Views: 143

Answers: 1

Read More
xdevel2000
xdevel2000

Reputation: 21444

C23 and memory representation of nullptr

Score: 1

Views: 119

Answers: 2

Read More
Coocys
Coocys

Reputation: 61

Unreal Engine Replication of TArrays of Object type

Score: 1

Views: 58

Answers: 1

Read More
prestamo ordenador
prestamo ordenador

Reputation: 17

Can "nullptr" fully replace "NULL" in C23?

Score: 0

Views: 157

Answers: 0

Read More
Khaled Alshaya
Khaled Alshaya

Reputation: 96889

What is the nullptr keyword, and why is it better than NULL?

Score: 686

Views: 424440

Answers: 15

Read More
Enlico
Enlico

Reputation: 28500

Does the runtime dereference of a nullptr always result in Segmentation Fault?

Score: 1

Views: 221

Answers: 3

Read More
michael3.14
michael3.14

Reputation: 333

Overload resolution of a pointer and a container with pointers

Score: 14

Views: 1448

Answers: 3

Read More
Zebrafish
Zebrafish

Reputation: 14338

Can I check a C++ iterator against null?

Score: 23

Views: 73690

Answers: 5

Read More
Igor
Igor

Reputation: 6285

Error for the nullptr in smart ponter initializatin

Score: 0

Views: 69

Answers: 0

Read More
jitters
jitters

Reputation: 41

What is the correct way to use C23's nullptr in place of NULL?

Score: 3

Views: 301

Answers: 1

Read More
Tenacity
Tenacity

Reputation: 9

Singly linked list returning an error even though I have already checked it

Score: -1

Views: 97

Answers: 1

Read More
CS Student
CS Student

Reputation: 33

What is a "known bad pointer value"?

Score: 1

Views: 277

Answers: 3

Read More
wimalopaan
wimalopaan

Reputation: 5472

Is a non-constant zero integer cast to `void *` still a null pointer?

Score: 7

Views: 189

Answers: 2

Read More
Romolo Caponera
Romolo Caponera

Reputation: 57

C++ nullpointer dereference when adding instance to std::map within the constructor

Score: 1

Views: 100

Answers: 2

Read More
Ben Edri
Ben Edri

Reputation: 21

c++ metaprogramming: 'nullptr' vs '0' as a default paramater for "enable_if<bool>::type* = [x]"

Score: 2

Views: 96

Answers: 3

Read More
phinz
phinz

Reputation: 1459

Is a range-based loop over a default constructed std::span undefined behavior?

Score: 3

Views: 118

Answers: 0

Read More
Tema Sysoev
Tema Sysoev

Reputation: 109

Updating to macOS 13.3 broke compiling cpp

Score: 7

Views: 3303

Answers: 3

Read More
PreviousPage 1Next