explicit tag

1 questions


2 answers
128 views
0
What does the explicit keyword in C++ do?

I'm going around the internetgoI saw the C++ code below What does this explicit do for you?class String {public: explicit String (int n); //allocate n bytes String(const char *p); // initialize sobjec...


© 2024 OneMinuteCode. All rights reserved.