Q.1.
Which exception is thrown if the typecasting is not done properly?
Q.2.
What is the use of emplace() function?
Q.3.
What is the use of type() function in any container?
Q.4.
What will be the output of the following C++ code? #include<iostream> #include<any> using namespace std; int main() { float val = 5. any var(val); cout<<var.type().name()<<endl; return}
Q.5.
What is the use of has_value() function in any container?
Q.6.
What is the use of reset() function?
Q.7.
In how many ways we can handle errors in any class?