When is the primitive constructor type actually used?

I know that similar questions have already been asked on SO, but my question is different, so please do not mark it as duplicate or somehow else before you read it completely.

Bjarne Stroustrup in his book C ++ Programming Language says that

10.4.2 Built-in types also have default constructors

also read section 6.2.8 of the same book.

The following links also say that built-in types have default constructors in C ++.

But the answers at the following link say that built-in types do not have constructors.

  • Do built-in types have default constructors?

Also, read the following links that say expressions such as int i=int(); initiate initialization of the value, which basically ends with zero initialization.

  • Does "int a = int ();" sure to give me zero?

Here is a question that I sometimes asked that says what happens in the case of int a=int() in C ++ 98, and I got the answer as initialization by default.

  • int a = int (); what happens in c ++ 98?

If I'm not mistaken, there is no mention in the C ++ standard, or the C ++ standard does not mean that primitive types also have constructors. So, from the book of Bjarn Straustup, can I say that it is conceptually true that they have constructors, but there is practically no such thing as a constructor for built-in types? Is this really spoiled text in his book? Or, if this is true, according to the book of Bjarne Straustrup, when are they really called up and used?

+7
c ++ constructor primitive-types built-in-types
source share

No one has answered this question yet.

See similar questions:

41
Do built-in types have standard constructors?
8
int a = int (); what happens in c ++ 98?
7
"Int a = int ();" sure to give me zero?

or similar:

2108
How can I name one constructor from another in Java?
1174
Virtual call of the participant in the constructor
1169
Calling a base constructor in C #
908
Calling one constructor from another
740
Is it possible to call a constructor from another constructor (make a constructor chain) in C ++?
495
What are the rules for calling a superclass constructor?
112
Zero initialization in C ++ - why in this program "b" is not initialized, but "a" is initialized?
41
Do built-in types have standard constructors?
8
int a = int (); what happens in c ++ 98?
6
Do primitive types also have constructors in C ++?

All Articles